CVE-2023-22946
JSON

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 packageVersionsReported by
Apache Software Foundation Apache Sparkbefore 3.4.0CVE List
org.apache.spark:spark-core_2.12 (Maven)before 3.3.3GitHub Advisory Database
org.apache.spark:spark-core_2.13 (Maven)before 3.3.3GitHub Advisory Database
pyspark (PyPI)before 3.3.2, before 3.4.0GitHub Advisory Database, PyPA Advisory Database
apache sparkbefore 3.4.0NVD
spark (Bitnami)before 3.4.0Bitnami Vulnerability Database

All scores

apache6.4medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
GitHub9.9critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
NVD9.9critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
Bitnami Vulnerability Databasecritical rating

Classification

CWE-269

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

SourceRecordLicence
CVE ListCVE-2023-22946 changed 2024-10-21CVE Terms of Use
GitHub Advisory DatabaseGHSA-329j-jfvr-rhr6 changed 2024-10-15CC-BY-4.0
NVDCVE-2023-22946 changed 2026-06-17Public domain
PyPA Advisory DatabasePYSEC-2023-44 changed 2026-06-10CC-BY-4.0
Bitnami Vulnerability DatabaseBIT-SPARK-2023-22946 changed 2026-09-08Apache-2.0