Cookie signature recovery via nonconstant comparison
Published Mar 16, 2021 · Updated Feb 13, 2025
Timing discrepancy in Apache Hive before 2.3.8 allows remote attackers to recover another user's cookie signature through HTTP requests. CookieSigner.verifyAndExtract compares the supplied signature with the generated value using String.equals, leaking prefix-dependent timing. HiveServer2 must run in HTTP mode with cookie authentication enabled; a recovered signature can authenticate a forged cookie.
Summary
What happened
Timing discrepancy in Apache Hive before 2.3.8 allows remote attackers to recover another user's cookie signature through HTTP requests. CookieSigner.verifyAndExtract compares the supplied signature with the generated value using String.equals, leaking prefix-dependent timing. HiveServer2 must run in HTTP mode with cookie authentication enabled; a recovered signature can authenticate a forged cookie.
The record
- CVE
- CVE-2020-1926
- Published
- Mar 16, 2021
- Updated
- Feb 13, 2025
- Vendor
- The Apache Software Foundation
- Product
- Apache Hive
- Classifications
- CWE-203, CWE-208
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Mar 16, 2021CVE publishedPublication date reported by the CVE source.
- Feb 13, 2025Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=Apache Hive <2.3.8
What conditions does exploitation require?
What is affected?
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Public exploit references
No public exploit references are available in this record.
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo