CVE-2022-33891
CVE-2022-33891 is a high-severity vulnerability in Apache Spark with a CVSS 3.x base score of 8.8. It is listed in CISA's Known Exploited Vulnerabilities (KEV) catalog, confirming it has been exploited in the wild (added 2023-03-07). The underlying weakness is classified as CWE-78.
Key facts
- Severity: High (CVSS 3.x base score 8.8)
- EPSS exploit prediction: 93% (100th percentile)
- Actively exploited: Yes — listed in CISA KEV (added 2023-03-07)
- EU (EUVD) id: EUVD-2022-0217
- EU exploitation: Flagged exploited in the ENISA EU Vulnerability Database (since 2023-03-07)
- Weakness: CWE-78
- Affected product: Apache Spark
- Published:
- Last modified:
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.
Frequently asked questions
- 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.
- How severe is CVE-2022-33891?
- CVE-2022-33891 has a CVSS 3.x base score of 8.8, rated high severity. It is exploitable over network with low attack complexity, requires low privileges and no user interaction. Impact on confidentiality is high, integrity high, and availability high.
- Is CVE-2022-33891 being actively exploited?
- Yes. CVE-2022-33891 is on CISA's Known Exploited Vulnerabilities (KEV) catalog, added on 2023-03-07, which means active exploitation has been confirmed. It should be prioritised for remediation.
- What products are affected by CVE-2022-33891?
- CVE-2022-33891 affects Apache Spark. See the affected-products list for the exact vulnerable versions.
- How do I fix CVE-2022-33891?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround. Because this CVE is known to be actively exploited, treat remediation as urgent — CISA KEV typically sets a short remediation deadline.
- Does CVE-2022-33891 have an EU (EUVD) identifier?
- Yes. CVE-2022-33891 is tracked in the ENISA EU Vulnerability Database (EUVD) as EUVD-2022-0217. It is also flagged as exploited in the EUVD (since 2023-03-07).
- When was CVE-2022-33891 published?
- CVE-2022-33891 was published on 2022-07-18 and last updated on 2026-06-17.
References
- http://packetstormsecurity.com/files/168309/Apache-Spark-Unauthenticated-Command-Injection.html
- http://www.openwall.com/lists/oss-security/2023/05/02/1
- https://lists.apache.org/thread/p847l3kopoo5bjtmxrcwk21xp6tjxqlc
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2022-33891
Affected products (1)
- cpe:2.3:a:apache:spark:*:*:*:*:*:*:*:*
More vulnerabilities in Apache Spark
- CVE-2020-9480 — Critical (CVSS 9.8): In Apache Spark 2.4.5 and earlier, a standalone resource manager's master may be configured to require authentication…
- CVE-2018-17190 — Critical (CVSS 9.8): In all versions of Apache Spark, its standalone resource manager accepts code to execute on a 'master' host, that then…
- CVE-2019-20445 — Critical (CVSS 9.1): HttpObjectDecoder.java in Netty before 4.1.44 allows a Content-Length header to be accompanied by a second…
- CVE-2025-54920 — High (CVSS 8.8): This issue affects Apache Spark: before 3.5.7 and 4.0.1. Users are recommended to upgrade to version 3.5.7 or 4.0.1 and…
- CVE-2023-32007 — High (CVSS 8.8): ** UNSUPPORTED WHEN ASSIGNED ** The Apache Spark UI offers the possibility to enable ACLs via the configuration option…
- CVE-2017-12612 — High (CVSS 7.8): In Apache Spark 1.6.0 until 2.1.1, the launcher API performs unsafe deserialization of data received by its socket.…
All CVEs affecting Apache Spark →
Other CWE-78 (OS Command Injection) vulnerabilities
- CVE-2026-19188 — Critical (CVSS 10.0): A critical OS command injection vulnerability has been identified in the Haiwell IoT Cloud HMI Gateway product. The…
- CVE-2026-48362 — Critical (CVSS 10.0): ColdFusion is affected by an Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')…
- CVE-2026-16812 — Critical (CVSS 10.0): VeloCloud Orchestrator (VCO) on-prem has a security issue where this issue may allow a remote attacker to access…
- CVE-2026-6516 — Critical (CVSS 10.0): Zohocorp ManageEngine ADAudit Plus versions before 8606 are affected by Unauthenticated Remote code execution due to…
- CVE-2026-46339 — Critical (CVSS 10.0): 9Router is an AI router & token saver. From 0.4.30 until 0.4.37, 9Router's src/proxy.js middleware did not protect…
- CVE-2026-59726 — Critical (CVSS 10.0): Ruflo is an agent meta-harness for Claude Code and Codex. Prior to 3.16.3, ruflo's default docker-compose deployment…