CVE-2022-33891: Apache Spark Command Injection Vulnerability
Vulnerability summary
CVE-2022-33891 is a high (CVSS 8.8) OS Command Injection vulnerability in Apache Spark. It is known to be exploited: CISA lists it, first on 07-03-2023. EPSS estimates a 93.24% chance of exploitation in the next 30 days, higher than 99.8% of scored vulnerabilities. 2 public exploits are recorded.
Advisory lineage
Upstream 0 · Downstream 1 · Related 1Timeline
- 18-07-2022PublishedVulnerability first disclosed.
- 07-03-2023Added to CISA KEVApache Spark Command Injection Vulnerability
- 28-03-2023CISA remediation dueApply updates per vendor instructions.
- 21-10-2025Last modifiedVulnerability information updated.
Description
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 affects Apache Spark versions 3.0.3 and earlier, versions 3.1.1 to 3.1.2, and versions 3.2.0 to 3.2.1.
CVSS metrics
6 scores · 4 sources · 2 versions- OSV · MavenEcosystem advisory · calculated8.7HighCVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:L/SI:L/SA:N/E:A
- OSV · PypiEcosystem advisory · calculated8.8HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H/E:H
- OSV · MavenEcosystem advisory · calculated8.8HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H/E:H
- NVDNIST8.8HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS trend
Probability
93.24%
Chance of exploitation in the next 30 days
Percentile
100%
Versus all other CVEs
30-day change
+0.17 pp
From 93.08% on 18-09-2026
Known exploited
Compare KEV catalogs- Added
- 07-03-2023
- Federal due date
- 28-03-2023
CISA required action
Apply updates per vendor instructions. lists.apache.org/thread/p847l3kopoo5bjtmxrcwk21xp6tjxqlc nvd.nist.gov/vuln/detail/CVE-2022-33891
Public exploits
2 foundExploit Reference (packetstormsecurity.com)
Maturity: unknown
Apache Spark Unauthenticated Command Injection RCE
exploit/linux/http/apache_spark_rce_cve_2022_33891
Maturity: weaponized
Weaknesses
CWE · root causeAffected systems
Apache1 product
- spark≤ 3.0.3 | ≥ 3.1.1, ≤ 3.1.2 | ≥ 3.2.0, ≤ 3.2.1
Apache software foundation1 product
- apache spark≥ 3.0.3 and earlier, ≤ 3.0.3 | ≥ 3.1.1 to 3.1.2, ≤ 3.1.2 | ≥ 3.2.0 to 3.2.1, ≤ 3.2.1
Org.apache.spark1 product
- spark-parent_2.12≤ 3.0.3 | ≥ 3.1.1, < 3.2.2
PyPI1 product
- pyspark< 3.1.3 | ≥ 3.2.0, < 3.2.2
4 vendors · 4 products
References
10 links- packetstormsecurity.com/files/168309/Apache-Spark-Unauthenticated-Command-Injection.htmlWEBExploitThird Party AdvisoryVDB Entry
- www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2022-33891Government ResourceWEBThird Party AdvisoryUS Government Resource
- github.com/apache/sparkPACKAGE