CVE-2023-22946Apache Spark
Critical 9.9
Follow: this CVE · Apache · Apache Spark We alert you by email or Slack (account required).
- Priority
- 60
- CVSS 3.1
- 9.9
- EPSS
- 1.3% probability of exploitation in 30 days · percentile 70
- Auth required
- Yes
- Published
- Apr 17, 2023
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-269
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
What happens
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.
What to do
- Apply the vendor's security update for Spark.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| 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.3.2 |
pip install "pyspark>=3.3.2" |
| PyPI | pyspark |
< 3.4.0 |
3.4.0 |
pip install "pyspark>=3.4.0" |
Per OSV / GitHub Advisories (GHSA-329j-jfvr-rhr6, PYSEC-2023-44). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| apache | spark | < 3.4.0 |
Official sources
References
Links published by the sources. Open them with care.
- lists.apache.org Mailing List Vendor Advisory