Actively exploited vulnerability / CVE-2022-33891
Apache Spark: an attacker can run commands on your data processing server
When access control is enabled in the Apache Spark web interface, an attacker can pose as another user and run commands on the server with the rights of the account Spark runs under. This means they could read or change the data being processed, disrupt jobs and use the server as a foothold into the rest of your network. This vulnerability is on the lists of vulnerabilities used in real attacks kept by CISA, the US cybersecurity agency, and by ENISA, the EU cybersecurity agency.
- Identifier
- CVE-2022-33891 · EUVD-2022-0217
- Severity
- High (8.8/10)
- On the CISA list (US)
- yes, since 7 March 2023
- Deadline given to US federal agencies
- 28 March 2023
- On the ENISA list (EU)
- yes
- Probability of exploitation (EPSS)
- 82.0% (FIRST's estimate for the next 30 days)
Does it concern you?
Apache Spark is an open source platform for processing large amounts of data, used by data analytics, data engineering and machine learning teams. You likely have it if your company runs data analysis on its own servers or in the cloud, directly or through a provider.
The version is shown in the Spark web interface and in the startup information of the application, and your IT team or the provider managing the platform can tell you. Affected are versions 3.0.3 and earlier, versions 3.1.1 to 3.1.2, and versions 3.2.0 to 3.2.1.
Affected products and versions
- Apache Spark
- spark: up to and including 3.0.3; from 3.1.1 up to and including 3.1.2; from 3.2.0 up to and including 3.2.1
What to do
Install the latest update from Apache for Spark, following the vendor's instructions. Until then, make sure the Spark web interface is not reachable from the internet.
The official description
The text below is the description from the public database.
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.
Sources
- Red Hat Security Data
- CVE Program
- GitHub Advisory Database
- Vendor advisory: lists.apache.org
- Vendor advisory: nvd.nist.gov
- NVD
- ENISA EUVD
Data from the public CVE and NVD databases, the CISA KEV and ENISA EU KEV lists and FIRST's EPSS score. The explanations are ours, written from that data. Last updated: 29 November 2026.