CVE-2024-23945: Apache Hive and Spark: CookieSigner exposes the correct signature when message verification fails
5.9
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.75277%
CWE
Published
12/23/2024
Updated
12/26/2024
KEV Status
No
Technology
Java
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| org.apache.hive:hive-service | maven | >= 1.2.0, < 4.0.0 | 4.0.0 |
| org.apache.spark:spark-hive-thriftserver_2.11 | maven | <= 2.4.8 | |
| org.apache.spark:spark-hive-thriftserver_2.12 | maven | < 3.4.2 | 3.4.2 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from error message generation in the CookieSigner's.verifyAndExtract method. Both Hive and Spark implementations originally included the originalSignature (correct signature) in exception messages when signature validation failed, as shown in the commit diffs. This violates CWE-209 by exposing cryptographic material through error messages. The patches (7638cb1 for Hive, cf59b1f for Spark) explicitly remove the sensitive signature details from error messages, confirming these functions as the root cause.