CVE-2022-33891: Apache Spark Command Injection Vulnerability
CVE-2022-33891 is a high-severity flaw (CVSS 8.8) affecting spark, reported as exploited in the wild. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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
Why this priority
- High severity
- EPSS top 1%: very likely to be exploited
- Exploited in the wild (CISA KEV)
- Public exploit reference
- On your watchlist
A fixed release or distro patch exists.
Risk facts
| CVSS score | 8.8 (High) |
| Attack vector | Network (remote) |
| Attack complexity | Low |
| Privileges needed | Low |
| User interaction | None |
| EPSS exploit chance | 93.2% (top 1%) |
| CISA exploited list | Yes, fix due 2023-03-28 |
| Weakness | CWE-78 |
| Published | 2022-07-18 |
| Last modified | 2026-06-17 |
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Exploited Added to the CISA Known Exploited Vulnerabilities list
- Deadline CISA due date for US federal agencies to patch
- Updated Record last modified
Exact fixes by distribution
Public exploits and detection
Public code exists for this CVE. Treat unpatched systems as at risk, and only run PoCs in a lab.
- GitHub PoC: HuskyHacks/cve-2022-33891 (88 stars)
- GitHub PoC: W01fh4cker/cve-2022-33891 (51 stars)
- GitHub PoC: AmoloHT/CVE-2022-33891 (24 stars)
- GitHub PoC: AkbarTrilaksana/cve-2022-33891
- Metasploit: Apache Spark Unauthenticated Command Injection RCE
- Nuclei scan template: Apache Spark UI - Remote Command Injection
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2022-33891?
spark: upgrade to newer than 3.2.1. Exact commands for each OS are on this page.
Is CVE-2022-33891 being exploited?
Yes. CVE-2022-33891 is on the CISA Known Exploited Vulnerabilities list, so treat it as patch-now.
What does CVE-2022-33891 affect?
CVE-2022-33891 affects spark. Severity is high (CVSS 8.8). 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 enable
How urgent is CVE-2022-33891?
Priority 91/100. High severity; EPSS top 1%: very likely to be exploited; Exploited in the wild (CISA KEV); Public exploit reference; On your watchlist
Software pages
Related CVEs
- CVE-2025-55039 MEDIUM 6.5 UPGRADE This issue affects Apache Spark versions before 3.4.4, 3.5.2 and 4.0.0. Apache Spark versions before 4.0.0
- CVE-2026-32773 MEDIUM 6.1 UPGRADE There is a lack of XSS escaping in the Spark History Server prior to 3.5.8 which allows a malicious Spark job
- CVE-2025-54920 HIGH 8.8 UPGRADE This issue affects Apache Spark: before 3.5.7 and 4.0.1
- CVE-2025-3518 MEDIUM 4.3 UPGRADE It technically possible for a user to upload a file to a conversation despite the file upload functionality be
- CVE-2024-23945 MEDIUM 5.9 UPGRADE UPGRADE Signing cookies is an application security feature that adds a digital signature to cookie data to verify its