{"id":"CVE-2023-22946","summary":"Apache Spark proxy-user privilege escalation from malicious configuration class","details":"In Apache Spark versions prior to 3.4.0, applications using spark-submit can specify a 'proxy-user' to run as, limiting privileges. The application can execute code with the privileges of the submitting user, however, by providing malicious configuration-related classes on the classpath. This affects architectures relying on proxy-user, for example those using Apache Livy to manage submitted applications.\n\nUpdate to Apache Spark 3.4.0 or later, and ensure that \nspark.submit.proxyUser.allowCustomClasspathInClusterMode is set to its \ndefault of \"false\", and is not overridden by submitted applications.\n\n\n","aliases":["BIT-spark-2023-22946","GHSA-329j-jfvr-rhr6","PYSEC-2023-44"],"modified":"2026-08-12T03:51:49.218613924Z","published":"2023-04-17T07:30:19.865Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/22xxx/CVE-2023-22946.json","unresolved_ranges":[{"source":"AFFECTED_FIELD","extracted_events":[{"fixed":"3.4.0"}]}],"cna_assigner":"apache","cwe_ids":["CWE-269"]},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/22xxx/CVE-2023-22946.json"},{"type":"ADVISORY","url":"https://lists.apache.org/thread/yllfl25xh5tbotjmg93zrq4bzwhqc0gv"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-22946"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/apache/spark","events":[{"introduced":"0"},{"fixed":"87a5442f7ed96b11051d8a9333476d080054e5a0"}],"database_specific":{"cpe":"cpe:2.3:a:apache:spark:*:*:*:*:*:*:*:*","extracted_events":[{"introduced":"0"},{"fixed":"3.4.0"}],"source":"CPE_RANGE"}}],"versions":["v3.4.0-rc6","v3.4.0-rc5","v3.4.0-rc4","v3.4.0-rc2","v3.4.0-rc1","v3.0.0-preview-rc2","v3.0.0-preview","v3.0.0-preview-rc1","v0.7.0","v0.6.0","0.3-scala-2.8","alpha-0.2"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-22946.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N"}]}