{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2023-22946","id":"CVE-2023-22946","title":"Apache Spark proxy-user privilege escalation from malicious configuration class","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 appli","descriptionLong":"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","published":"2023-04-17T07:30:19.865Z","updated":"2026-10-28T02:30:56.349153471Z","reserved":"2023-01-11T01:18:53.321Z","status":"Modified","rejected":false,"assigner":"apache","metric":{"version":"3.1","score":6.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N","rating":"medium","source":"apache"},"metrics":[{"version":"3.1","score":6.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N","rating":"medium","source":"apache"},{"version":"3.1","score":6.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N","rating":"medium","source":"apache.org"},{"version":"3.1","score":9.9,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","rating":"critical","source":"NVD"},{"version":"3.1","score":6.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N","rating":"medium","source":"OSV"},{"version":"3.1","score":9.9,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","rating":"critical","source":"GitHub"}],"rating":"medium","products":["Apache Software Foundation Apache Spark"],"affectedProducts":[{"vendor":"Apache Software Foundation","product":"Apache Spark","defaultStatus":"unaffected","versions":[{"lessThan":"3.4.0","status":"affected","version":"0","versionType":"semver"}],"platforms":[]}],"packages":[{"ecosystem":"Maven","name":"org.apache.spark:spark-core_2.12","purl":"pkg:maven/org.apache.spark/spark-core_2.12","ranges":["<3.3.3"],"fixed":["3.3.3"],"advisory":"GHSA-329j-jfvr-rhr6"},{"ecosystem":"Maven","name":"org.apache.spark:spark-core_2.13","purl":"pkg:maven/org.apache.spark/spark-core_2.13","ranges":["<3.3.3"],"fixed":["3.3.3"],"advisory":"GHSA-329j-jfvr-rhr6"},{"ecosystem":"PyPI","name":"pyspark","purl":"pkg:pypi/pyspark","ranges":["<3.3.2","<3.4.0"],"fixed":["3.3.2","3.4.0"],"advisory":"GHSA-329j-jfvr-rhr6"}],"cwes":["CWE-269"],"aliases":["BIT-spark-2023-22946","GHSA-329j-jfvr-rhr6","PYSEC-2023-44"],"references":[{"url":"https://lists.apache.org/thread/yllfl25xh5tbotjmg93zrq4bzwhqc0gv","tags":["vendor-advisory","x_transferred","Mailing List","Vendor Advisory","advisory","web","article"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/22xxx/CVE-2023-22946.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-22946","tags":["advisory"]},{"url":"https://github.com/apache/spark/pull/39474","tags":["web"]},{"url":"https://github.com/apache/spark/pull/41428","tags":["web"]},{"url":"https://github.com/apache/spark/commit/909da96e1471886a01a9e1def93630c4fd40e74a","tags":["web"]},{"url":"https://github.com/degant/spark/commit/bfba57724d2520e0fcaa7990f7257c21d11cd75a","tags":["web"]},{"url":"https://github.com/apache/spark","tags":["package"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/pyspark/PYSEC-2023-44.yaml","tags":["web"]},{"url":"https://issues.apache.org/jira/browse/SPARK-41958","tags":["web"]},{"url":"https://github.com/advisories/GHSA-329j-jfvr-rhr6","tags":["advisory"]}],"patchReferenced":false,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.01109,"epssPercentile":0.66583,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2023-22946","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-22946","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2023-22946","ok":true,"note":"3 packages"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-329j-jfvr-rhr6","ok":true,"note":"GHSA-329j-jfvr-rhr6"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2023-22946","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}