CVE-2024-23953
Apache Hive vulnerable to Observable Timing Discrepancy and Authentication Bypass by Spoofing
Description
Use of Arrays.equals() in LlapSignerImpl in Apache Hive to compare message signatures allows attacker to forge a valid signature for an arbitrary message byte by byte. The attacker should be an authorized user of the product to perform this attack. Users are recommended to upgrade to version 4.0.0, which fixes this issue.
The problem occurs when an application doesn’t use a constant-time algorithm for validating a signature. The method Arrays.equals() returns false right away when it sees that one of the input’s bytes are different. It means that the comparison time depends on the contents of the arrays. This little thing may allow an attacker to forge a valid signature for an arbitrary message byte by byte. So it might allow malicious users to submit splits/work with selected signatures to LLAP without running as a privileged user, potentially leading to DDoS attack.
More details in the reference section.
Affected Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.apache.hive » hive-llap-common | < 4.0.0 | 4.0.0 |
Blast radius
63% of the dependent artifacts (658) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 8,235 |
| 2 hops | 14,988 |
| 3 hops | 22,218 |
| 4 hops | 34,699 |
| 5 hops | 16,759 |
| 6 hops | 6,399 |
Most used dependents
- org.apache.spark » spark-sql3,174 usages
- org.apache.spark » spark-core2,899 usages
- org.apache.spark » spark-mllib831 usages
- org.apache.hive » hive-exec699 usages
- org.apache.spark » spark-streaming670 usages
- org.apache.spark » spark-hive633 usages
- org.apache.spark » spark-catalyst502 usages
- org.apache.hive » hive-metastore480 usages
- org.apache.hive » hive-jdbc404 usages
- org.apache.hive » hive-common305 usages
- org.apache.hive » hive-service301 usages
- org.apache.hive » hive-serde206 usages
- org.apache.spark » spark-sql-kafka-0-10146 usages
- org.apache.spark » spark-graphx143 usages
- org.apache.spark » spark-yarn130 usages
Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
References
- Advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2024-23953
- Webhttps://github.com/apache/hive/commit/b418e3c9f479ba8e7d31e6470306111002ffa809
- Webhttps://blog.gypsyengineer.com/en/security/preventing-timing-attacks-with-codeql.html
- Webhttps://cqr.company/web-vulnerabilities/timing-attacks
- Packagehttps://github.com/apache/hive
- Webhttps://issues.apache.org/jira/browse/HIVE-28030
- Webhttps://lists.apache.org/thread/0nloywj49nbtlc6l3c6363qvq7o1ztb7
- Webhttp://www.openwall.com/lists/oss-security/2025/01/28/3
