CVE-2022-33891: Apache Spark Command Injection
Apache Spark · listed in the CISA catalog of actively exploited vulnerabilities since 2023-03-07.
- CVSS v3.1 (CISA ADP)
- 8.8
- high
- EPSS (exploit probability, 30 days)
- 93%
- higher than 99.8% of all CVEs
- Added to CISA KEV
- 2023-03-07
- US federal due date 2023-03-28
- Automatable (CISA SSVC)
- no
- technical impact: total
What is CVE-2022-33891?
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.
CISA required action: Apply updates per vendor instructions.
CISA notes
Affected and fixed versions
From the CVE record published by the vendor or CVE numbering authority.
- Apache Software Foundation Apache SparkAffectedFixed in
- ≥ 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
not stated
| Product | Affected | Fixed in |
|---|---|---|
| Apache Software Foundation Apache Spark |
| not stated |
How to fix it
- The CVE record names no fixed version – check the vendor advisory and CISA's required action for updates and mitigations.
- Vendor advisory: lists.apache.org/thread/p847l3kopoo5bjtmxrcwk21xp6tjxqlc
- CISA's deadline for US federal agencies: 2023-03-28 (passed) – a useful benchmark for everyone else, too.
Workaround: Upgrade to supported Apache Spark maintenance release 3.1.3, 3.2.2, or 3.3.0 or later
CISA's assessment (SSVC)
- Exploitation
- Exploited in the wild
- Automatable
- No – each attack needs manual steps
- Technical impact
- Total – full control of the component or total information disclosure
Weakness: CWE-78 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
References
Trackers and catalogs
Data: CISA Known Exploited Vulnerabilities (public domain) · CVE Program records incl. CISA ADP enrichment · OSV.dev (CC BY 4.0) incl. Ubuntu and Debian security data · FIRST EPSS · endoflife.date. Updated automatically – facts last changed 2026-11-21. Always confirm with the vendor's or distribution's advisory before patching.