CVE-2024-23945 Apache Hive, Apache Spark, Apache Spark: CookieSigner exposes the correct signature when message verification fails
Apache Hive and Spark expose valid cookie signatures upon verification failure, allowing attackers to bypass integrity checks and potentially forge cookies.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-23945?
CVE-2024-23945 is a medium-severity vulnerability in Apache Hive, published on 23 Dec 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
Signing cookies is an application security feature that adds a digital signature to cookie data to verify its authenticity and integrity. The signature helps prevent malicious actors from modifying the cookie value, which can lead to security vulnerabilities and exploitation. Apache Hive’s service component accidentally exposes the signed cookie to the end user when there is a mismatch in signature between the current and expected cookie. Exposing the correct cookie signature can lead to further exploitation.
The vulnerable CookieSigner logic was introduced in Apache Hive by HIVE-9710 (1.2.0) and in Apache Spark by SPARK-14987 (2.0.0). The affected components are the following: * org.apache.hive:hive-service * org.apache.spark:spark-hive-thriftserver_2.11 * org.apache.spark:spark-hive-thriftserver_2.12
Weakness: CWE-209
Which versions are affected by CVE-2024-23945?
6 open source packages ship an affected version, including org.apache.hive:hive-service, org.apache.spark:spark-hive-thriftserver_2.11 and org.apache.spark:spark-hive-thriftserver_2.12. It affects 2 products.
| Package | Affected | Fixed in |
|---|---|---|
org.apache.hive:hive-service Maven | From 1.2.0 | 4.0.0 |
org.apache.hive:hive-service Maven | From 1.2.0 | 4.0.0 |
org.apache.spark:spark-hive-thriftserver_2.11 Maven | All versions to 2.4.8 | None |
org.apache.spark:spark-hive-thriftserver_2.11 Maven | All versions to 2.4.8 | None |
org.apache.spark:spark-hive-thriftserver_2.12 Maven | All versions | 3.4.2 |
org.apache.spark:spark-hive-thriftserver_2.12 Maven | All versions | 3.4.2 |
Products include Apache Hive, Apache Spark.
How do I fix CVE-2024-23945?
Upgrade org.apache.hive:hive-service to 4.0.0 or later.
Is CVE-2024-23945 being exploited?
There is no known exploitation of CVE-2024-23945 in the wild and no public exploit code.
Other vulnerabilities in Apache Hive
- CVE-2026-49845 Apache Hive: SQL Injection vulnerability in HiveMetaStore partition-name direct-SQL paths
- CVE-2018-21234 Deserialization of Untrusted Data in Jodd
- CVE-2026-55976 Apache Hive: SSRF vulnerability in Hive Avro Serde due to Insufficient input validation on avro.schema.url
- CVE-2018-1282 SQL Injection in hive-jdbc
- CVE-2022-41137 Apache Hive: Deserialization of untrusted data when fetching partitions from the Metastore
Sources
Also known as CLEANSTART-2026-TG12161, GHSA-77pm-w3hx-f8mj, OESA-2025-1039.