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

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

Affected products (1)

More vulnerabilities in Apache Spark

All CVEs affecting Apache Spark →

Other CWE-78 (OS Command Injection) vulnerabilities

Browse all CWE-78 (OS Command Injection) vulnerabilities →