{"id":"CVE-2023-22946","aliases":["CVE-2023-22946","GHSA-329j-jfvr-rhr6","BIT-SPARK-2023-22946","PYSEC-2023-44"],"related":[],"kind":"vulnerability","state":"published","title":"Apache Spark proxy-user privilege escalation from malicious configuration class","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"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.","format":"markdown","source":"ghsa"}],"published":"2023-04-17T07:30:19.865Z","modified":"2026-09-08T08:48:19.475Z","severity":{"scorer":"apache","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N","score":6.4,"rating":"MEDIUM"},"severities":[{"scorer":"apache","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N","score":6.4,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","score":9.9,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","score":9.9,"rating":"CRITICAL"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"CRITICAL"}],"cwes":["CWE-269"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"3.4.0","status":"affected"}],"vendor":"Apache Software Foundation","product":"Apache Spark","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"3.3.3"}],"ecosystem":"Maven","package":"org.apache.spark:spark-core_2.12","purl":"pkg:maven/org.apache.spark/spark-core_2.12","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"3.3.3"}],"ecosystem":"Maven","package":"org.apache.spark:spark-core_2.13","purl":"pkg:maven/org.apache.spark/spark-core_2.13","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"3.3.2"}],"ecosystem":"PyPI","package":"pyspark","purl":"pkg:pypi/pyspark","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"3.4.0"}],"vendor":"apache","product":"spark","cpe":"cpe:2.3:a:apache:spark:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"3.4.0"}],"ecosystem":"PyPI","package":"pyspark","purl":"pkg:pypi/pyspark","source":"pysec"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"3.4.0"}],"ecosystem":"Bitnami","package":"spark","purl":"pkg:bitnami/spark","source":"bitnami"}],"references":[{"url":"https://lists.apache.org/thread/yllfl25xh5tbotjmg93zrq4bzwhqc0gv","tags":["advisory","article","mailing-list","vendor-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-22946","tags":["advisory","web"],"sources":["ghsa","bitnami"]},{"url":"https://github.com/apache/spark/pull/39474","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/apache/spark/pull/41428","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/apache/spark/commit/909da96e1471886a01a9e1def93630c4fd40e74a","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/degant/spark/commit/bfba57724d2520e0fcaa7990f7257c21d11cd75a","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/apache/spark","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/pyspark/PYSEC-2023-44.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://issues.apache.org/jira/browse/SPARK-41958","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/advisories/GHSA-329j-jfvr-rhr6","tags":["advisory"],"sources":["pysec"]}],"credits":["Hideyuki Furue","Yi Wu (Databricks)"],"assigner":"apache","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-10-21T15:06:49.411Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-22946","url":"https://www.cve.org/CVERecord?id=CVE-2023-22946","licence":"CVE Terms of Use","modified":"2024-10-21T15:06:58.145Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-329j-jfvr-rhr6","url":"https://github.com/advisories/GHSA-329j-jfvr-rhr6","licence":"CC-BY-4.0","modified":"2024-10-15T18:49:31.436Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-22946","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-22946","licence":"Public domain","modified":"2026-06-17T05:36:28.993Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2023-44","url":"https://osv.dev/vulnerability/PYSEC-2023-44","licence":"CC-BY-4.0","modified":"2026-06-10T17:01:37.151Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-SPARK-2023-22946","url":"https://osv.dev/vulnerability/BIT-SPARK-2023-22946","licence":"Apache-2.0","modified":"2026-09-08T08:48:19.475Z"}],"updatedAt":"2026-11-25T22:58:23.538Z","epss":{"score":0.01109,"percentile":0.66813,"date":"2026-12-01T12:00:22.000Z"}}