{"id":"CVE-2023-22946","aliases":["BIT-spark-2023-22946","GHSA-329j-jfvr-rhr6","PYSEC-2023-44"],"url":"https://o3.security/vulnerability/CVE-2023-22946","summary":"Apache Spark proxy-user privilege escalation from malicious configuration class","details":"In Apache Spark versions prior to versions 3.4.0 and 3.3.3, 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, 3.3.3, or later, and ensure that spark.submit.proxyUser.allowCustomClasspathInClusterMode is set to its default of \"false\", and is not overridden by submitted applications.","published":"2023-04-17T07:30:19.865Z","modified":"2026-10-28T02:30:56.349153471Z","cvss":{"score":6.4,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N"},"epss":{"score":0.01109,"percentile":0.62898,"asOf":"2026-08-23"},"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"Maven","name":"org.apache.spark:spark-core_2.12","fixedVersion":"3.3.3"},{"ecosystem":"Maven","name":"org.apache.spark:spark-core_2.13","fixedVersion":"3.3.3"},{"ecosystem":"PyPI","name":"pyspark","fixedVersion":"3.3.2"}],"fix":{"url":"https://github.com/apache/spark/pull/39474","label":"apache/spark#39474"},"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"},{"type":"WEB","url":"https://github.com/apache/spark/pull/39474"},{"type":"WEB","url":"https://github.com/apache/spark/pull/41428"},{"type":"WEB","url":"https://github.com/apache/spark/commit/909da96e1471886a01a9e1def93630c4fd40e74a"},{"type":"WEB","url":"https://github.com/degant/spark/commit/bfba57724d2520e0fcaa7990f7257c21d11cd75a"},{"type":"PACKAGE","url":"https://github.com/apache/spark"},{"type":"WEB","url":"https://github.com/pypa/advisory-database/tree/main/vulns/pyspark/PYSEC-2023-44.yaml"},{"type":"WEB","url":"https://issues.apache.org/jira/browse/SPARK-41958"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-10-28T02:30:56.349153471Z"}}