6.4medium
Apache Spark proxy-user privilege escalation from malicious configuration class
- Severity
- 6.4medium CVSS:3.1 by apache
- Exploit likelihood
- 1.11% (higher than 66% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- apache
- Also known as
- GHSA-329j-jfvr-rhr6BIT-SPARK-2023-22946PYSEC-2023-44
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Apache Software Foundation Apache Spark | before 3.4.0 | CVE List |
| org.apache.spark:spark-core_2.12 (Maven) | before 3.3.3 | GitHub Advisory Database |
| org.apache.spark:spark-core_2.13 (Maven) | before 3.3.3 | GitHub Advisory Database |
| pyspark (PyPI) | before 3.3.2, before 3.4.0 | GitHub Advisory Database, PyPA Advisory Database |
| apache spark | before 3.4.0 | NVD |
| spark (Bitnami) | before 3.4.0 | Bitnami Vulnerability Database |
All scores
| apache | 6.4medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N |
| GitHub | 9.9critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H |
| NVD | 9.9critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H |
| Bitnami Vulnerability Database | critical rating |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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.
GitHub Advisory Database
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.
Update 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.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2023-22946 changed 2024-10-21 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-329j-jfvr-rhr6 changed 2024-10-15 | CC-BY-4.0 |
| NVD | CVE-2023-22946 changed 2026-06-17 | Public domain |
| PyPA Advisory Database | PYSEC-2023-44 changed 2026-06-10 | CC-BY-4.0 |
| Bitnami Vulnerability Database | BIT-SPARK-2023-22946 changed 2026-09-08 | Apache-2.0 |