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.
CVE-2022-33891
Score elevated to 9.0 because this CVE is listed on the CISA Known Exploited Vulnerabilities catalog (added 2023-03-07), indicating real-world exploitation has been confirmed by US federal agencies. NVD baseline CVSS 8.8 retained for reference. Confidence: HIGH.
- Actively exploited in the wild (CISA-KEV)
No vendor fix yet — apply a workaround or compensating control (WAF / firewall / segmentation) and watch for a patch.
- CVSS v3
- 8.8
- EG Score
- 9.0(high)
- EG Risk
- —
- EPSS
- 99.8%
- KEV
- ⚠ Exploited
Published
July 18, 2022
Last Modified
October 23, 2025
Advisory Details (4)
Auto-updated Jun 2, 2026Known Exploited Vulnerabilities Catalog | CISA
Known Exploited Vulnerabilities Catalog | CISA. Listed in CISA Known Exploited Vulnerabilities catalog.
https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2022-33891oss-security - CVE-2023-32007: Apache Spark: Shell command injection via Spark UI
http://www.openwall.com/lists/oss-security/2023/05/02/1Vendor Advisories for CVE-2022-33891(1)
These vendors published their own advisory mentioning this CVE — often with vendor-specific remediation steps + affected product lists not in NVD.
Affected Packages
(2 across 2 ecosystems)
Maven(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| org.apache.spark:spark-parent_2.12 | 3.1.1, 3.1.2, 3.1.3, 3.2.0, 3.2.1 | 3.2.2 | — |
PyPI(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| pyspark | 2.1.1 ... 3.2.1 (29 versions) | 3.2.2 | — |
Weakness Classification(1)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Data Freshness Timeline
(refreshed 7× in last 7d / 23× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
- 2026-07-22 21:50 UTCEG score recompute
- 2026-07-22 19:40 UTCCISA KEV update
- 2026-07-21 14:37 UTCCISA KEV update
- 2026-07-18 12:17 UTCEG score recompute
- 2026-07-18 10:03 UTCEPSS rescore
- 2026-07-18 10:03 UTCEPSS rescore
- 2026-07-16 17:04 UTCCISA KEV update
- 2026-07-15 16:49 UTCCISA KEV update
- 2026-07-15 15:04 UTCCISA KEV update
- 2026-07-14 18:05 UTCCISA KEV update
- 2026-07-13 17:07 UTCCISA KEV update
- 2026-07-10 17:52 UTCCISA KEV update
- 2026-07-07 19:01 UTCCISA KEV update
- 2026-07-07 17:16 UTCCISA KEV update
- 2026-07-01 19:16 UTCCISA KEV update
- 2026-07-01 15:04 UTCEPSS rescore
- 2026-06-29 19:12 UTCCISA KEV update
- 2026-06-25 19:15 UTCCISA KEV update
- 2026-06-24 14:03 UTCEPSS rescore
- 2026-06-24 14:03 UTCEPSS rescore
- 2026-06-23 21:31 UTCEPSS rescore
- 2026-06-23 21:31 UTCEPSS rescore
- 2026-06-23 17:44 UTCCISA KEV update
- 2026-06-18 16:13 UTCCISA KEV update
- 2026-06-17 17:51 UTCEPSS rescore
Show 30 moreShow fewer
- 2026-06-17 17:51 UTCEPSS rescore
- 2026-06-16 19:33 UTCCISA KEV update
- 2026-06-15 19:33 UTCCISA KEV update
- 2026-06-15 17:46 UTCEPSS rescore
- 2026-06-12 23:10 UTCEPSS rescore
- 2026-06-12 23:10 UTCEPSS rescore
- 2026-06-12 17:35 UTCCISA KEV update
- 2026-06-11 19:10 UTCCISA KEV update
- 2026-06-09 18:42 UTCCISA KEV update
- 2026-06-09 17:12 UTCCISA KEV update
- 2026-06-08 19:16 UTCCISA KEV update
- 2026-06-08 17:26 UTCCISA KEV update
- 2026-06-08 14:15 UTCEPSS rescore
- 2026-06-08 14:15 UTCEPSS rescore
- 2026-06-07 15:23 UTCEPSS rescore
- 2026-06-07 15:23 UTCEPSS rescore
- 2026-06-05 22:46 UTCEPSS rescore
- 2026-06-05 22:45 UTCEPSS rescore
- 2026-06-05 22:43 UTCCISA KEV update
- 2026-06-03 19:09 UTCCISA KEV update
- 2026-06-02 18:32 UTCCISA KEV update
- 2026-06-01 20:42 UTCCISA KEV update
- 2026-05-29 22:20 UTCCISA KEV update
- 2026-05-28 13:43 UTCEPSS rescore
- 2026-05-28 13:43 UTCEPSS rescore
- 2026-05-27 20:35 UTCCISA KEV update
- 2026-05-26 19:13 UTCCISA KEV update
- 2026-05-26 13:43 UTCEPSS rescore
- 2026-05-26 13:43 UTCEPSS rescore
- 2026-05-25 18:47 UTCEG score recompute
Publicly available exploits
(7 references)Working exploit code is in the public domain (1 Metasploit module) (5 GitHub PoCs). Defenders should treat patch urgency accordingly — public PoCs typically lead to mass-exploitation within 24-72 hours.
- GitHub PoCK3ysTr0K3R/CVE-2022-33891-EXPLOITFirst seen Feb 22, 2024
A PoC exploit for CVE-2022-33891 - Apache Spark UI Remote Code Execution (RCE)
Open source ↗ - GitHub PoCAmoloHT/CVE-2022-33891First seen Jul 30, 2022
「💥」CVE-2022-33891 - Apache Spark Command Injection
Open source ↗ - Open source ↗GitHub PoCAkbarTrilaksana/cve-2022-33891First seen Jul 20, 2022
- GitHub PoCHuskyHacks/cve-2022-33891First seen Jul 19, 2022
Apache Spark Shell Command Injection Vulnerability
Open source ↗ - GitHub PoCW01fh4cker/cve-2022-33891First seen Jul 18, 2022
cve-2022-33891-poc
Open source ↗ - Metasploitexploit/linux/http/apache_spark_rce_cve_2022_33891✓ verifiedFirst seen Jul 18, 2022
Apache Spark Unauthenticated Command Injection RCE
Open source ↗ - Nucleihttp/cves/2022/CVE-2022-33891.yamlFirst seen Jan 1, 2022
Apache Spark UI - Remote Command Injection
Open source ↗
Related CVEs(same CWE)
Same CWE
10 shownCWE-78
Frequently asked(6)
What is CVE-2022-33891?
When was CVE-2022-33891 disclosed?
Is CVE-2022-33891 actively exploited?
What is the CVSS score of CVE-2022-33891?
Which products are affected by CVE-2022-33891?
How do I remediate CVE-2022-33891?
Dependency Blast Radius
See which npm, PyPI, Go, and Maven packages are affected by CVE-2022-33891
Is Your Infrastructure Affected by CVE-2022-33891?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.