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

- Severity: Medium 5.9 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.55%, higher than 75% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-12-23T15:26:54.477Z
- Modified: 2026-06-17T07:13:55.947Z
- Also known as: GHSA-77pm-w3hx-f8mj
- Weaknesses: CWE-209
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: apache

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

(As written by CVE List.)

## Affected

- org.apache.hive:hive-service: from 1.2.0 before 4.0.0
- org.apache.spark:spark-hive-thriftserver_2.11: from 2.0.0 before 3.0.0
- org.apache.spark:spark-hive-thriftserver_2.12: from 3.0.0 before 3.3.4; from 3.4.0 before 3.4.2; 3.5.0
- org.apache.hive:hive-service (Maven): from 1.2.0 before 4.0.0
- org.apache.spark:spark-hive-thriftserver_2.11 (Maven): up to 2.4.8
- org.apache.spark:spark-hive-thriftserver_2.12 (Maven): before 3.4.2
- apache hive: from 1.2.0 before 4.0.0
- apache spark: from 2.0.0 before 3.3.4; from 3.4.0 before 3.4.2; 3.5.0

## Every score

- CISA-ADP: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N`
- GitHub: CVSS:3.1 5.9 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N`

## References

- <https://issues.apache.org/jira/browse/HIVE-9710> (exploit, issue-tracking, patch, vendor-advisory, web)
- <https://github.com/apache/hive> (product, web)
- <https://github.com/apache/spark> (product, web)
- <https://github.com/apache/spark/commit/cf59b1f51c16301f689b4e0f17ba4dbd140e1b19> (patch, web)
- <https://github.com/apache/hive/commit/7638cb1a3b07713cc490aa2909a37037f89e08b4> (patch, web)
- <https://issues.apache.org/jira/browse/SPARK-14987> (patch, vendor-advisory, web)
- <https://lists.apache.org/thread/59r4mv7glrxpwkkdjvjbdljfpx3f5zzc> (mailing-list, vendor-advisory, web)
- <https://lists.apache.org/thread/5o2ljnzrv8zvhjw9vy7b4rwjpc32hgfc> (mailing-list, vendor-advisory, web)
- <http://www.openwall.com/lists/oss-security/2024/12/23/2> (mailing-list, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-23945> (advisory)

## Sources

- CVE List: [CVE-2024-23945](https://www.cve.org/CVERecord?id=CVE-2024-23945), CVE Terms of Use, modified 2025-03-19
- GitHub Advisory Database: [GHSA-77pm-w3hx-f8mj](https://github.com/advisories/GHSA-77pm-w3hx-f8mj), CC-BY-4.0, modified 2024-12-26
- NVD: [CVE-2024-23945](https://nvd.nist.gov/vuln/detail/CVE-2024-23945), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-23945 · Whole record: https://cve.day/CVE-2024-23945.json · Rebuilt by cve.day 2026-11-25T22:58:50.324Z
