{"id":"CVE-2024-23945","state":"PUBLISHED","title":"Apache Hive, Apache Spark, Apache Spark: CookieSigner exposes the correct signature when message verification fails","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","publishedAt":"2024-12-23T15:26:54.477Z","updatedAt":"2025-03-19T13:34:26.019Z","severity":{"score":5.9,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N","source":"CISA-ADP"},"assigner":"apache","products":["Apache Software Foundation Apache Hive","Apache Software Foundation Apache Spark"],"affected":[{"vendor":"Apache Software Foundation","product":"Apache Hive","packageName":"org.apache.hive:hive-service","defaultStatus":"unaffected","versions":[{"version":"1.2.0","status":"affected","lessThan":"4.0.0","versionType":"semver"}],"collectionURL":"https://repo.maven.apache.org/maven2"},{"vendor":"Apache Software Foundation","product":"Apache Spark","packageName":"org.apache.spark:spark-hive-thriftserver_2.11","defaultStatus":"unaffected","versions":[{"version":"2.0.0","status":"affected","lessThan":"3.0.0","versionType":"semver"}],"collectionURL":"https://repo.maven.apache.org/maven2"},{"vendor":"Apache Software Foundation","product":"Apache Spark","packageName":"org.apache.spark:spark-hive-thriftserver_2.12","defaultStatus":"unaffected","versions":[{"version":"3.0.0","status":"affected","lessThan":"3.3.4","versionType":"semver"},{"version":"3.4.0","status":"affected","lessThan":"3.4.2","versionType":"semver"},{"version":"3.5.0","status":"affected","versionType":"semver"}],"collectionURL":"https://repo.maven.apache.org/maven2"}],"references":["https://github.com/apache/hive","https://github.com/apache/spark","https://github.com/apache/spark/commit/cf59b1f51c16301f689b4e0f17ba4dbd140e1b19","https://github.com/apache/hive/commit/7638cb1a3b07713cc490aa2909a37037f89e08b4","https://issues.apache.org/jira/browse/HIVE-9710","https://issues.apache.org/jira/browse/SPARK-14987","https://lists.apache.org/thread/59r4mv7glrxpwkkdjvjbdljfpx3f5zzc","https://lists.apache.org/thread/5o2ljnzrv8zvhjw9vy7b4rwjpc32hgfc","http://www.openwall.com/lists/oss-security/2024/12/23/2"],"weaknesses":["CWE-209"],"ingestedAt":"2026-10-29T20:06:59.846Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/23xxx/CVE-2024-23945.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2024-23945","state":"PUBLISHED","datePublished":"2024-12-23T15:26:54.477Z","dateUpdated":"2025-03-19T13:34:26.019Z","assignerShortName":"apache","assignerOrgId":"f0158376-9dc2-43b6-827c-5f631a4d8d09","dateReserved":"2024-01-24T10:47:00.803Z"},"containers":{"cna":{"title":"Apache Hive, Apache Spark, Apache Spark: CookieSigner exposes the correct signature when message verification fails","descriptions":[{"lang":"en","value":"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"}],"affected":[{"vendor":"Apache Software Foundation","product":"Apache Hive","packageName":"org.apache.hive:hive-service","defaultStatus":"unaffected","versions":[{"version":"1.2.0","status":"affected","lessThan":"4.0.0","versionType":"semver"}],"collectionURL":"https://repo.maven.apache.org/maven2"},{"vendor":"Apache Software Foundation","product":"Apache Spark","packageName":"org.apache.spark:spark-hive-thriftserver_2.11","defaultStatus":"unaffected","versions":[{"version":"2.0.0","status":"affected","lessThan":"3.0.0","versionType":"semver"}],"collectionURL":"https://repo.maven.apache.org/maven2"},{"vendor":"Apache Software Foundation","product":"Apache Spark","packageName":"org.apache.spark:spark-hive-thriftserver_2.12","defaultStatus":"unaffected","versions":[{"version":"3.0.0","status":"affected","lessThan":"3.3.4","versionType":"semver"},{"version":"3.4.0","status":"affected","lessThan":"3.4.2","versionType":"semver"},{"version":"3.5.0","status":"affected","versionType":"semver"}],"collectionURL":"https://repo.maven.apache.org/maven2"}],"references":[{"url":"https://github.com/apache/hive","tags":["product"]},{"url":"https://github.com/apache/spark","tags":["product"]},{"url":"https://github.com/apache/spark/commit/cf59b1f51c16301f689b4e0f17ba4dbd140e1b19","tags":["patch"]},{"url":"https://github.com/apache/hive/commit/7638cb1a3b07713cc490aa2909a37037f89e08b4","tags":["patch"]},{"url":"https://issues.apache.org/jira/browse/HIVE-9710"},{"url":"https://issues.apache.org/jira/browse/SPARK-14987"},{"url":"https://lists.apache.org/thread/59r4mv7glrxpwkkdjvjbdljfpx3f5zzc","tags":["vendor-advisory"]},{"url":"https://lists.apache.org/thread/5o2ljnzrv8zvhjw9vy7b4rwjpc32hgfc","tags":["vendor-advisory"]}],"metrics":[{"other":{"content":{"text":"important"},"type":"Textual description of severity"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-209","description":"CWE-209 Generation of Error Message Containing Sensitive Information","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"apache","orgId":"f0158376-9dc2-43b6-827c-5f631a4d8d09","dateUpdated":"2024-12-23T15:26:54.477Z"},"credits":[{"lang":"en","type":"reporter","value":"Kostya Kortchinsky"},{"lang":"en","type":"reporter","value":"Hamza Tahmi"}],"source":{"discovery":"UNKNOWN"},"x_generator":{"engine":"Vulnogram 0.1.0-dev"}},"adp":[{"title":"CVE Program Container","references":[{"url":"http://www.openwall.com/lists/oss-security/2024/12/23/2"}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-12-23T18:03:26.179Z"}},{"title":"CISA ADP Vulnrichment","metrics":[{"cvssV3_1":{"scope":"UNCHANGED","version":"3.1","baseScore":5.9,"attackVector":"NETWORK","baseSeverity":"MEDIUM","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N","integrityImpact":"HIGH","userInteraction":"NONE","attackComplexity":"HIGH","availabilityImpact":"NONE","privilegesRequired":"NONE","confidentialityImpact":"NONE"}},{"other":{"type":"ssvc","content":{"timestamp":"2024-12-24T01:50:23.681395Z","id":"CVE-2024-23945","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-209","type":"CWE","lang":"en","description":"CWE-209 Generation of Error Message Containing Sensitive Information"}]}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-03-19T13:34:26.019Z"}}]}}}