{"answers":{"affected":"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.","exploited":"There is no known exploitation of CVE-2024-23945 in the wild and no public exploit code.","fix":"Upgrade org.apache.hive:hive-service to 4.0.0 or later.","what":"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."},"fix_prompt":"Check this codebase for CVE-2024-23945 and fix it if it is affected.\n\nWhat it is: 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.\nExploitation: There is no known exploitation of CVE-2024-23945 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- org.apache.hive:hive-service (Maven): affected from 1.2.0; fixed in 4.0.0\n- org.apache.hive:hive-service (Maven): affected from 1.2.0; fixed in 4.0.0\n- org.apache.spark:spark-hive-thriftserver_2.11 (Maven): affected all versions up to 2.4.8; no fix listed\n- org.apache.spark:spark-hive-thriftserver_2.11 (Maven): affected all versions up to 2.4.8; no fix listed\n- org.apache.spark:spark-hive-thriftserver_2.12 (Maven): affected all versions; fixed in 3.4.2\n- org.apache.spark:spark-hive-thriftserver_2.12 (Maven): affected all versions; fixed in 3.4.2\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-23945/ (Markdown: https://insights.sbomify.com/CVE-2024-23945/index.md)","id":"CVE-2024-23945","markdown":"https://insights.sbomify.com/CVE-2024-23945/index.md","name":"CVE-2024-23945","record":{"aliases":["CLEANSTART-2026-TG12161","GHSA-77pm-w3hx-f8mj","OESA-2025-1039"],"analysis":{"component_type":"library","fix_type":"patch","impacts":["data_read","security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"Apache Hive Spark","requires_auth":"none","summary":"Apache Hive and Spark expose valid cookie signatures upon verification failure, allowing attackers to bypass integrity checks and potentially forge cookies.","user_interaction":"not_required","vuln_class":"information_disclosure"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"apache","cpe":[{"product":"hive","vendor":"apache"},{"product":"spark","vendor":"apache"}],"cvss":{"score":5.9,"severity":"medium","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-209","name":"Generation of Error Message Containing Sensitive Information"}],"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.\n\nThe 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:\n* org.apache.hive:hive-service\n* org.apache.spark:spark-hive-thriftserver_2.11\n* org.apache.spark:spark-hive-thriftserver_2.12","ecosystems":["Maven"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Apache Hive, Apache Spark, Apache Spark: CookieSigner exposes the correct signature when message verification fails","id":"CVE-2024-23945","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"information_disclosure","year":"2024"},"n_packages":6,"n_references":8,"next":{"headline":"Apache OFBiz: Path traversal or file inclusion","id":"CVE-2024-23946"},"packages":[{"ecosystem":"Maven","fixed":["4.0.0"],"introduced":["1.2.0"],"last_affected":[],"package":"org.apache.hive:hive-service","purl":null,"source":"GHSA-77pm-w3hx-f8mj"},{"ecosystem":"Maven","fixed":["4.0.0"],"introduced":["1.2.0"],"last_affected":[],"package":"org.apache.hive:hive-service","purl":"pkg:maven/org.apache.hive/hive-service","source":"GHSA-77pm-w3hx-f8mj"},{"ecosystem":"Maven","fixed":[],"introduced":["0"],"last_affected":["2.4.8"],"package":"org.apache.spark:spark-hive-thriftserver_2.11","purl":null,"source":"GHSA-77pm-w3hx-f8mj"},{"ecosystem":"Maven","fixed":[],"introduced":["0"],"last_affected":["2.4.8"],"package":"org.apache.spark:spark-hive-thriftserver_2.11","purl":"pkg:maven/org.apache.spark/spark-hive-thriftserver_2.11","source":"GHSA-77pm-w3hx-f8mj"},{"ecosystem":"Maven","fixed":["3.4.2"],"introduced":["0"],"last_affected":[],"package":"org.apache.spark:spark-hive-thriftserver_2.12","purl":null,"source":"GHSA-77pm-w3hx-f8mj"},{"ecosystem":"Maven","fixed":["3.4.2"],"introduced":["0"],"last_affected":[],"package":"org.apache.spark:spark-hive-thriftserver_2.12","purl":"pkg:maven/org.apache.spark/spark-hive-thriftserver_2.12","source":"GHSA-77pm-w3hx-f8mj"}],"prev":{"headline":"Apache ZooKeeper: Information disclosure in persistent watcher handling","id":"CVE-2024-23944"},"products":["Apache Hive","Apache Spark"],"published":"2024-12-23","related":[{"cvss_score":9.8,"headline":"Apache Hive: SQL Injection vulnerability in HiveMetaStore partition-name direct-SQL paths","id":"CVE-2026-49845","kev_date_added":null,"published":"2026-08-25"},{"cvss_score":9.8,"headline":"Deserialization of Untrusted Data in Jodd","id":"CVE-2018-21234","kev_date_added":null,"published":"2020-05-21"},{"cvss_score":9.1,"headline":"Apache Hive: SSRF vulnerability in Hive Avro Serde due to Insufficient input validation on avro.schema.url","id":"CVE-2026-55976","kev_date_added":null,"published":"2026-08-25"},{"cvss_score":9.1,"headline":"SQL Injection in hive-jdbc","id":"CVE-2018-1282","kev_date_added":null,"published":"2018-04-05"},{"cvss_score":8.3,"headline":"Apache Hive: Deserialization of untrusted data when fetching partitions from the Metastore","id":"CVE-2022-41137","kev_date_added":null,"published":"2024-12-05"},{"cvss_score":8.3,"headline":"High severity vulnerability that affects org.apache.hive:hive, org.apache.hive:hive-exec, and org.apache.hive:hive-service","id":"CVE-2015-7521","kev_date_added":null,"published":"2016-01-29"},{"cvss_score":8.1,"headline":"Improper Authentication in hive:hive-exec","id":"CVE-2018-11777","kev_date_added":null,"published":"2018-11-08"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-03-19","vendors":["Apache Software Foundation"]},"summary":"Apache Hive and Spark expose valid cookie signatures upon verification failure, allowing attackers to bypass integrity checks and potentially forge cookies.","url":"https://insights.sbomify.com/CVE-2024-23945/"}