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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.9
- **CVSS:** 5.9 (v3.1, CNA) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** Yes (see exploit references)
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 2.25% (percentile 84, 2026-11-26)
- **CWE:** CWE-209
- **Aliases:** GHSA-77pm-w3hx-f8mj
- **Published:** 2024-12-23T15:26:54.477Z
- **Modified:** 2026-06-17T07:13:55.947Z

## 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

## 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

- Maven `org.apache.hive:hive-service`: affected \>= 1.2.0, \< 4.0.0; fixed 4.0.0 (osv)
- Maven `org.apache.spark:spark-hive-thriftserver_2.11`: affected \<= 2.4.8; fixed no fix listed yet (osv)
- Maven `org.apache.spark:spark-hive-thriftserver_2.12`: affected \< 3.4.2; fixed 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)

## 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.

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

## 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.

## References

- vendor: <https://lists.apache.org/thread/59r4mv7glrxpwkkdjvjbdljfpx3f5zzc>
- vendor: <https://lists.apache.org/thread/5o2ljnzrv8zvhjw9vy7b4rwjpc32hgfc>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2024-23945>
- patch: <https://github.com/apache/spark/commit/cf59b1f51c16301f689b4e0f17ba4dbd140e1b19>
- patch: <https://github.com/apache/hive/commit/7638cb1a3b07713cc490aa2909a37037f89e08b4>
- patch: <https://issues.apache.org/jira/browse/SPARK-14987>
- exploit: <https://issues.apache.org/jira/browse/HIVE-9710>
- other: <https://github.com/apache/hive>
- other: <https://github.com/apache/spark>
- other: <http://www.openwall.com/lists/oss-security/2024/12/23/2>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-23945>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-77pm-w3hx-f8mj> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2024-23945> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-23945>
