CVE-2024-23945 Apache Hive, Apache Spark, Apache Spark: CookieSigner exposes the correct signature when message verification fails

Medium 5.9 Published Updated

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.

PackageAffectedFixed in
org.apache.hive:hive-service MavenFrom 1.2.04.0.0
org.apache.hive:hive-service MavenFrom 1.2.04.0.0
org.apache.spark:spark-hive-thriftserver_2.11 MavenAll versions to 2.4.8None
org.apache.spark:spark-hive-thriftserver_2.11 MavenAll versions to 2.4.8None
org.apache.spark:spark-hive-thriftserver_2.12 MavenAll versions3.4.2
org.apache.spark:spark-hive-thriftserver_2.12 MavenAll versions3.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.

Sources

Also known as CLEANSTART-2026-TG12161, GHSA-77pm-w3hx-f8mj, OESA-2025-1039.

Is CVE-2024-23945 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free