Vulnerability · Published Jan 28, 2025 · Assigned by apache
CVE-2024-23953Apache Hive: Timing Attack Against Signature in LLAP util
Medium 6.5
In plain English
A medium-severity security flaw in Apache Hive from Apache Software Foundation. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.4% (higher than 73% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Maven | org.apache.hive:hive-llap-common | 4.0.0 | GHSA-p953-3j66-hg45 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| Apache Software Foundation | Apache Hive | 2.2.0 – before 4.0.0 |
Weakness: CWE-208 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
References
- https://github.com/apache/hive product
- https://github.com/apache/hive/commit/b418e3c9f479ba8e7d31e6470306111002ffa809 patch
- https://issues.apache.org/jira/browse/HIVE-28030 issue-tracking
- https://blog.gypsyengineer.com/en/security/preventing-timing-attacks-with-codeql.html technical-description
- https://cqr.company/web-vulnerabilities/timing-attacks/ technical-description
- https://lists.apache.org/thread/0nloywj49nbtlc6l3c6363qvq7o1ztb7 vendor-advisory
- http://www.openwall.com/lists/oss-security/2025/01/28/3