CVE-2022-33891

Known Exploited Public Exploit
Apache Spark shell command injection vulnerability via Spark UI

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.

Remediation

Workaround:

  • Upgrade to supported Apache Spark maintenance release 3.1.3, 3.2.2, or 3.3.0 or later

Category

8.8
CVSS
Severity: High
CVSS 3.1 •
EPSS 94.24% Top 5%
KEV Since 
Third-Party Advisory packetstormsecurity.com Third-Party Advisory openwall.com Third-Party Advisory apache.org
Affected: Apache Software Foundation Apache Spark
Published at:
Updated at:

References

Frequently Asked Questions

What is the severity of CVE-2022-33891?
CVE-2022-33891 has been scored as a high severity vulnerability.
How to fix CVE-2022-33891?
As a workaround for remediating CVE-2022-33891: Upgrade to supported Apache Spark maintenance release 3.1.3, 3.2.2, or 3.3.0 or later
Is CVE-2022-33891 being actively exploited in the wild?
It is confirmed that CVE-2022-33891 is actively exploited. Be extra cautious if you are using vulnerable components. According to its EPSS score, there is a ~94% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
What software or system is affected by CVE-2022-33891?
CVE-2022-33891 affects Apache Software Foundation Apache Spark.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.