{"schemaVersion":3,"id":"CVE-2023-22946","aliases":["GHSA-329j-jfvr-rhr6","BIT-spark-2023-22946","PYSEC-2023-44"],"status":"published","duplicateOf":null,"title":null,"description":"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.","dates":{"published":"2023-04-17T07:30:19.865Z","modified":"2024-10-21T15:06:58.145Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":9.9,"severity":"critical","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","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","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Pypi","score":9.9,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","exploitability":7.9,"impact":10,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Maven","score":9.9,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","exploitability":7.9,"impact":10,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":9.9,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.01109,"percentile":0.65371,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.01109},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.01109,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.01109,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.01109,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.01109,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.01109,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.01109,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.01109,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01109,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01109,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01109,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01109,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01109,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01109,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01109,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01109,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01109,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01109,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01109,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01109,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01109,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01109,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01109,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01109,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01109,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01109,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01109,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01109,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01109,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01109,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01109,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01109,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01109,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01109,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01109,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01109,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01109,"percentile":0.65371}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.01109,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.01109,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01109,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01109,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01109,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01109,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01109,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01109,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01109,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01109,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01109,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01109,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01109,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01109,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01109,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01109,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01109,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01109,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01109,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01109,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01109,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01109,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01109,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01109,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01109,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01109,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01109,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01109,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01109,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01109,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01109,"percentile":0.65371}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-269","name":"Improper Privilege Management","description":"The product does not properly assign, modify, track, or check privileges for an actor, creating an unintended sphere of control for that actor.","type":"weakness","status":"Draft","abstraction":"Class","likelihoodOfExploit":"Medium","url":"https://cwe.mitre.org/data/definitions/269.html"}],"affected":[{"vendor":"apache software foundation","product":"apache spark","name":"Apache Spark","label":"apache spark","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 3.4.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.4.0","eol":null,"hubHref":"/vendor/apache_software_foundation/apache_spark"},{"vendor":"apache","product":"spark","name":"Spark","label":"spark","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 3.4.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.4.0","eol":{"isEol":null,"eolDate":null,"matchMethod":"cpe","cycle":null,"product":{"name":"apache-spark","label":"Apache Spark","category":"server-app"}},"hubHref":"/vendor/apache/spark"},{"vendor":"org.apache.spark","product":"spark-core_2.12","name":"org.apache.spark:spark-core_2.12","label":"spark-core_2.12","ecosystem":"Maven","cpePart":null,"purl":"pkg:maven/org.apache.spark/spark-core_2.12","purlType":"maven","versions":[{"text":"< 3.3.3","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.3.3","eol":null,"hubHref":null},{"vendor":"org.apache.spark","product":"spark-core_2.13","name":"org.apache.spark:spark-core_2.13","label":"spark-core_2.13","ecosystem":"Maven","cpePart":null,"purl":"pkg:maven/org.apache.spark/spark-core_2.13","purlType":"maven","versions":[{"text":"< 3.3.3","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.3.3","eol":null,"hubHref":null},{"vendor":"PyPI","product":"pyspark","name":"pyspark","label":"pyspark","ecosystem":"PyPI","cpePart":null,"purl":"pkg:pypi/pyspark","purlType":"pypi","versions":[{"text":"< 3.4.0","noFixRecorded":false,"fixedIn":null},{"text":"< 3.3.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.4.0 | < 3.3.2","eol":null,"hubHref":null}],"affectedCount":5,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://lists.apache.org/thread/yllfl25xh5tbotjmg93zrq4bzwhqc0gv","label":"lists.apache.org/thread/yllfl25xh5tbotjmg93zrq4bzwhqc0gv","hostname":"lists.apache.org","tags":["Vendor Advisory","WEB","ARTICLE","Advisory","Mailing List"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-22946","label":"nvd.nist.gov/vuln/detail/CVE-2023-22946","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/apache/spark/pull/39474","label":"github.com/apache/spark/pull/39474","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/apache/spark/pull/41428","label":"github.com/apache/spark/pull/41428","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/apache/spark/commit/909da96e1471886a01a9e1def93630c4fd40e74a","label":"github.com/apache/spark/commit/909da96e1471886a01a9e1def93630c4fd40e74a","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/degant/spark/commit/bfba57724d2520e0fcaa7990f7257c21d11cd75a","label":"github.com/degant/spark/commit/bfba57724d2520e0fcaa7990f7257c21d11cd75a","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/apache/spark","label":"github.com/apache/spark","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/pyspark/PYSEC-2023-44.yaml","label":"github.com/pypa/advisory-database/tree/main/vulns/pyspark/PYSEC-2023-44.yaml","hostname":"github.com","tags":["WEB"]},{"url":"https://issues.apache.org/jira/browse/SPARK-41958","label":"issues.apache.org/jira/browse/SPARK-41958","hostname":"issues.apache.org","tags":["WEB"]},{"url":"https://github.com/advisories/GHSA-329j-jfvr-rhr6","label":"github.com/advisories/GHSA-329j-jfvr-rhr6","hostname":"github.com","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2023-04-17T07:30:19.865Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-10-21T15:06:58.145Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":70,"level":"high","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T05:36:27.253Z","stale":false,"partial":false}}