CVE-2024-23945
Apache Hive, Apache Spark, Apache Spark: CookieSigner exposes the correct signature when message verification fails
Also known as GHSA-77pm-w3hx-f8mj
Mitigation
- Upgrade org.apache.hive:hive-service to 4.0.0 or later.
- Upgrade org.apache.spark:spark-hive-thriftserver_2.12 to 3.4.2 or later.
Who should check
- Projects that depend on Maven package org.apache.hive:hive-service (>= 1.2.0, < 4.0.0)
- Projects that depend on Maven package org.apache.spark:spark-hive-thriftserver_2.11 (<= 2.4.8)
- Projects that depend on Maven package org.apache.spark:spark-hive-thriftserver_2.12 (< 3.4.2)
- Anyone running Apache Software Foundation Apache Hive >= 1.2.0, < 4.0.0
- Anyone running Apache Software Foundation Apache Spark >= 2.0.0, < 3.0.0
- Anyone running Apache Software Foundation Apache Spark >= 3.0.0, < 3.3.4; >= 3.4.0, < 3.4.2; 3.5.0
Vulnerability facts
- Affected
- org.apache.hive:hive-service >= 1.2.0, < 4.0.0; org.apache.spark:spark-hive-thriftserver_2.11 <= 2.4.8; org.apache.spark:spark-hive-thriftserver_2.12 < 3.4.2
- Fixed in
- 4.0.0, 3.4.2
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- Yes: see the exploit references below
- Remote exploitation
- Remote, no login needed
- CVSS
- 5.9 (v3.1, CNA)CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: High
- Privileges required: None
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: None
- Integrity impact: High
- Availability impact: None
- EPSS
- 2.25% chance of exploitation in 30 days (percentile 84, 2026-11-26)
- CWE
- CWE-209
- Modified
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
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Maven org.apache.hive:hive-service | >= 1.2.0, < 4.0.0 | 4.0.0 | osv |
| Maven org.apache.spark:spark-hive-thriftserver_2.11 | <= 2.4.8 | — | osv |
| Maven org.apache.spark:spark-hive-thriftserver_2.12 | < 3.4.2 | 3.4.2 | osv |
| Apache Software Foundation Apache Hive | >= 1.2.0, < 4.0.0 | — | cvelist |
| Apache Software Foundation Apache Spark | >= 2.0.0, < 3.0.0 | — | cvelist |
| Apache Software Foundation Apache Spark | >= 3.0.0, < 3.3.4; >= 3.4.0, < 3.4.2; 3.5.0 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2024-23945. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2024-23945.md Affected: org.apache.hive:hive-service >= 1.2.0, < 4.0.0; org.apache.spark:spark-hive-thriftserver_2.11 <= 2.4.8; org.apache.spark:spark-hive-thriftserver_2.12 < 3.4.2 Fixed in: 4.0.0, 3.4.2 Steps: 1. Search this machine and project for org.apache.hive:hive-service (Maven), org.apache.spark:spark-hive-thriftserver_2.11 (Maven), org.apache.spark:spark-hive-thriftserver_2.12 (Maven), Apache Software Foundation Apache Hive, Apache Software Foundation Apache Spark: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
Patches
Exploits and PoCs
FAQ
Is CVE-2024-23945 being exploited?
There is no confirmed exploitation: CVE-2024-23945 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 2.25% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2024-23945?
Medium: CVSS 5.9 (v3.1, scored by CNA). Remote, no login needed. The attack needs conditions outside the attacker's control, which makes it harder.
Which versions are affected by CVE-2024-23945?
org.apache.hive:hive-service >= 1.2.0, < 4.0.0; org.apache.spark:spark-hive-thriftserver_2.11 <= 2.4.8; org.apache.spark:spark-hive-thriftserver_2.12 < 3.4.2.
Is there a fix for CVE-2024-23945?
Yes. Fixed in 4.0.0, 3.4.2. Upgrade org.apache.hive:hive-service to 4.0.0 or later. Upgrade org.apache.spark:spark-hive-thriftserver_2.12 to 3.4.2 or later.
How do I check if I'm affected by CVE-2024-23945?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.