CVE-2023-32007
HighApache Spark UI vulnerable to Command Injection
Published May 2, 2023 · Updated Sep 8, 2026 · Also known as BIT-spark-2023-32007, GHSA-59hw-j9g6-mfg3, PYSEC-2023-72
Key Facts
Patch immediately- CVE-2023-32007 is a high-severity vulnerability (CVSS 8.7 v4) affecting Spark (Apache), org.apache.spark:spark-parent_2.12 (pypi), pyspark (pypi) and 1 more product.
- It is not listed in any known-exploited vulnerabilities catalog. No public exploit code is known.
- EPSS estimates a 76% probability of exploitation in the next 30 days.
- Fixed versions are available, including Spark <=3.0.3, Spark 3.2.2, Spark 3.0.4.
- Brandefense priority: patch immediately, because it is very likely to be exploited soon.
CVSS v4
8.7
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:L/SI:L/SA:N
EPSS (30-day exploit likelihood)
76%
Higher than 99.5% of all scored CVEs
Exploited in the wild
No known
Not in a known-exploited catalog
Public exploit code
None known
Get the full CVE-2023-32007 brief as a PDF
Every affected product and fixed release, exploitation status and a first 24 hours response checklist, emailed within minutes.
Description
UNSUPPORTED WHEN ASSIGNED The Apache Spark UI offers the possibility to enable ACLs via the configuration option spark.acls.enable. With an authentication filter, this checks whether a user has access permissions to view or modify the application. If ACLs are enabled, a code path in HttpSecurityFilter can allow someone to perform impersonation by providing an arbitrary user name. A malicious user might then be able to reach a permission check function that will ultimately build a Unix shell command based on their input, and execute it. This will result in arbitrary shell command execution as the user Spark is currently running as. This issue was disclosed earlier as CVE-2022-33891, but incorrectly claimed version 3.1.3 (which has since gone EOL) would not be affected.
NOTE: This vulnerability only affects products that are no longer supported by the maintainer.
Users are recommended to upgrade to a supported version of Apache Spark, such as version 3.4.0.
Affected Products
7 affected entries in total| Product | Affected versions | Fixed in |
|---|---|---|
| SparkApache | >= 3.1.1 | 3.0.3 |
| org.apache.spark:spark-parent_2.12pypi | >= 3.1.1 | 3.2.2 |
| pysparkpypi | >= 3.1.1 | 3.2.2 |
| seal-pysparkseal | See advisory | 2.4.8+sp999 |
Patched Releases
Spark
<=3.0.3, 3.2.2, 3.0.4, 3.1.4
org.apache.spark:spark-parent_2.12
3.2.2
pyspark
2.4.8+sp999, 3.2.2
seal-pyspark
2.4.8+sp999
Timeline
Publicly disclosed
May 2, 2023
Last updated
Sep 8, 2026
Weakness Type
- CWE-77 Improper Neutralization of Special Elements used in a Command ('Command Injection')
References
- advisoryGHSA advisory
- advisoryhttps://github.com/CVEProject/cvelistV5/tree/main/cves/2023/32xxx/CVE-2023-32007.json
- advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2023-32007
- articlehttps://github.com/pypa/advisory-database/tree/main/vulns/pyspark/PYSEC-2023-72.yaml
- articlehttps://lists.apache.org/thread/poxgnxhhnzz735kr1wos366l5vdbb0nv
FAQ
Common Questions.
UNSUPPORTED WHEN ASSIGNED The Apache Spark UI offers the possibility to enable ACLs via the configuration option spark.acls.enable.
Affected: Spark (Apache) versions >= 3.1.1; org.apache.spark:spark-parent_2.12 (pypi) versions >= 3.1.1; pyspark (pypi) versions >= 3.1.1, among others. The full list is in the CVE brief.
It is not listed in any known-exploited vulnerabilities catalog.
No, it is not currently listed in the CISA Known Exploited Vulnerabilities catalog.
No public exploit code is known.
Fixed versions are available, including Spark <=3.0.3, Spark 3.2.2, Spark 3.0.4.
Brandefense priority: patch immediately, because it is very likely to be exploited soon.
Is CVE-2023-32007 Running On Your Attack Surface?
Brandefense maps vulnerabilities like this one to your internet-facing assets and tells you exactly where to patch.
Request A Demo