CVE-2022-33891: Apache Spark UI impersonation and shell command injection
- Vendor
- Apache Software Foundation
CVE-2022-33891 is a command injection vulnerability in Apache Spark UI. When ACLs are enabled, an impersonation flaw in HttpSecurityFilter allows an attacker to supply an arbitrary username and reach a permission-check function that constructs and executes a Unix shell command using attacker-controlled input. Successful exploitation executes arbitrary shell commands under the Spark process account. Affected releases include Apache Spark 3.0.3 and earlier, 3.1.1–3.1.2, and 3.2.0–3.2.1.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
An attacker can impersonate an arbitrary user and execute shell commands with the privileges of the account running Spark. The resulting compromise is bounded by that account's permissions. Zerobot variants have incorporated exploitation of this vulnerability into their propagation capabilities.
Mitigation
If you can’t patch tonight, do this now.
Until upgrading, disable or avoid enabling Spark UI ACLs through spark.acls.enable, while restricting UI access through appropriate authentication and network controls. Do not rely on disabling ACLs alone as an access-control measure.
Remediation
Patch, then assume compromise.
Upgrade Apache Spark and associated PySpark installations to a fixed release: 3.1.3 for the affected 3.1.x branch or 3.2.2 for the affected 3.2.x branch, or move to a newer supported release. Upgrade affected older installations rather than remaining on vulnerable 3.0.x releases.
Exploits
6 exploits validated by Mallory's analysis.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2022-33891 exploited in the wild?
- Yes. As of Oct 16, 2026, Mallory has reports of exploitation in the wild, and CISA added it to KEV on Mar 7, 2023.
- Is there a public exploit for CVE-2022-33891?
- Yes. Mallory tracks 6 public exploits or proofs of concept for CVE-2022-33891, the earliest disclosed Jul 18, 2022.
- Is there a patch for CVE-2022-33891?
- Upgrade Apache Spark and associated PySpark installations to a fixed release: 3.1.3 for the affected 3.1.x branch or 3.2.2 for the affected 3.2.x branch, or move to a newer supported release. Upgrade affected older installations rather than remaining on vulnerable 3.0.x releases.
- What products are affected by CVE-2022-33891?
- Apache Software Foundation Spark.
- How severe is CVE-2022-33891?
- CVE-2022-33891 has a CVSS v3.1 score of 8.8 (High) and an EPSS score of 92.9% (100th percentile) as of Oct 16, 2026.
Recent activity
4 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.