# CVE-2023-22946: Apache Spark proxy-user privilege escalation from malicious configuration class

- Severity: Medium 6.4 (CVSS:3.1, scored by apache) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.11%, higher than 66% of CVEs (2026-12-01)
- Published: 2023-04-17T07:30:19.865Z
- Modified: 2026-09-08T08:48:19.475Z
- Also known as: GHSA-329j-jfvr-rhr6, BIT-SPARK-2023-22946, PYSEC-2023-44
- Weaknesses: CWE-269
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: apache

## 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.

Update to Apache Spark 3.4.0 or later, and ensure that 
spark.submit.proxyUser.allowCustomClasspathInClusterMode is set to its 
default of "false", and is not overridden by submitted applications.

(As written by CVE List.)

## Affected

- Apache Software Foundation Apache Spark: before 3.4.0
- org.apache.spark:spark-core_2.12 (Maven): before 3.3.3
- org.apache.spark:spark-core_2.13 (Maven): before 3.3.3
- pyspark (PyPI): before 3.3.2; before 3.4.0
- apache spark: before 3.4.0
- spark (Bitnami): before 3.4.0

## Every score

- apache: CVSS:3.1 6.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N`
- GitHub: CVSS:3.1 9.9 Critical `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.9 Critical `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`
- Bitnami Vulnerability Database: rating Critical

## References

- <https://lists.apache.org/thread/yllfl25xh5tbotjmg93zrq4bzwhqc0gv> (advisory, article, mailing-list, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-22946> (advisory, web)
- <https://github.com/apache/spark/pull/39474> (web)
- <https://github.com/apache/spark/pull/41428> (web)
- <https://github.com/apache/spark/commit/909da96e1471886a01a9e1def93630c4fd40e74a> (web)
- <https://github.com/degant/spark/commit/bfba57724d2520e0fcaa7990f7257c21d11cd75a> (web)
- <https://github.com/apache/spark> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/pyspark/PYSEC-2023-44.yaml> (web)
- <https://issues.apache.org/jira/browse/SPARK-41958> (web)
- <https://github.com/advisories/GHSA-329j-jfvr-rhr6> (advisory)

## Sources

- CVE List: [CVE-2023-22946](https://www.cve.org/CVERecord?id=CVE-2023-22946), CVE Terms of Use, modified 2024-10-21
- GitHub Advisory Database: [GHSA-329j-jfvr-rhr6](https://github.com/advisories/GHSA-329j-jfvr-rhr6), CC-BY-4.0, modified 2024-10-15
- NVD: [CVE-2023-22946](https://nvd.nist.gov/vuln/detail/CVE-2023-22946), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2023-44](https://osv.dev/vulnerability/PYSEC-2023-44), CC-BY-4.0, modified 2026-06-10
- Bitnami Vulnerability Database: [BIT-SPARK-2023-22946](https://osv.dev/vulnerability/BIT-SPARK-2023-22946), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2023-22946 · Whole record: https://cve.day/CVE-2023-22946.json · Rebuilt by cve.day 2026-11-25T22:58:23.538Z
