{"id":"CVE-2023-22946","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-04-12T07:25:00.193887Z","published":"2023-04-17T08:15:07.790Z","references":[{"type":"ADVISORY","url":"https://lists.apache.org/thread/yllfl25xh5tbotjmg93zrq4bzwhqc0gv"}],"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_FIELD"}}],"versions":["0.3-scala-2.8","alpha-0.2","v0.6.0","v0.7.0","v3.0.0-preview","v3.0.0-preview-rc1","v3.0.0-preview-rc2","v3.4.0-rc1","v3.4.0-rc2","v3.4.0-rc4","v3.4.0-rc5","v3.4.0-rc6"],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2023-22946.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H"}]}