CVE-2023-22946 json
Apache Spark proxy-user privilege escalation from malicious configuration class
published 2023-04-17 3 y ago modified 2026-09-08 2 mo ago also BIT-spark-2023-22946 , EUVD-2023-0219 , GHSA-329j-jfvr-rhr6 , PYSEC-2023-44
- cvss
- 6.4
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.1%
- EPSS 1.1% chance of exploitation in 30 days, percentile 66%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- maven org.apache.spark:spark-core_2.12 3.3.3
- maven org.apache.spark:spark-core_2.13 3.3.3
- pypi pyspark 3.3.2, 3.4.0
- bitnami spark 3.4.0
- Apache Software Foundation Apache Spark 3.4.0
- github.com/apache/spark@909da96 commit
- github.com/degant/spark@bfba577 commit
- github.com/apache/spark#39474 pull request
- github.com/apache/spark#41428 pull request
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 2 y ago
Exploit prediction
1.11% chance of exploitation in the next 30 days, higher than 66% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 6.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N |
| GitHub | 3.1 | 9.9 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H |
| NVD | 3.1 | 9.9 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H |
| OSV | 3.1 | 9.9 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| maven | org.apache.spark:spark-core_2.12 | <3.3.3 |
3.3.3 |
| maven | org.apache.spark:spark-core_2.13 | <3.3.3 |
3.3.3 |
| pypi | pyspark | <3.3.2 <3.4.0 |
3.3.2 3.4.0 |
| bitnami | spark | <3.4.0 |
3.4.0 |
Affected products
- Apache Software Foundation Apache Spark
Classification
- Weakness
-
- CWE-269 Improper Privilege Management
References
-
github.com
/apache/spark/pull/39474
web
-
github.com
/apache/spark/pull/41428
web
-
github.com
/apache/spark/commit/909da96e1471886a01a9e1def93630c4fd40e74a
web
-
github.com
/degant/spark/commit/bfba57724d2520e0fcaa7990f7257c21d11cd75a
web
-
lists.apache.org
/thread/yllfl25xh5tbotjmg93zrq4bzwhqc0gv
vendor-advisory, web, mailing-list, advisory, article
-
nvd.nist.gov
/vuln/detail/CVE-2023-22946
advisory, web
-
github.com
/apache/spark
package
-
github.com
/pypa/advisory-database/tree/main/vulns/pyspark/PYSEC-2023-44.yaml
web
-
issues.apache.org
/jira/browse/SPARK-41958
web
-
github.com
/advisories/GHSA-329j-jfvr-rhr6
advisory
Sources
- CVE List CVE-2023-22946
- GitHub Advisory GHSA-329j-jfvr-rhr6
- NVD CVE-2023-22946
- OSV BIT-spark-2023-22946
- OSV PYSEC-2023-44
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.