BLACKOUT MAP

Apache · Spark

CVE-2022-33891

Apache Spark shell command injection vulnerability via Spark UI

Exploited in attacks High 8.8 Attack chance: 93%
Share

What it is

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.

CISA: Apache Spark contains a command injection vulnerability via Spark User Interface (UI) when Access Control Lists (ACLs) are enabled.

What to do

Apply updates per vendor instructions.

Deadline for US federal agencies: March 28, 2023

Added to the CISA list
March 7, 2023
Published
July 18, 2022
Severity
High 8.8 CVSS 3.1
Chance of attacks in the next 30 days (EPSS)
93% in the top 0.2% of all known vulnerabilities
Weakness
CWE-78
More details
NVD · CVE.org · CISA
All references (3)

More exploited flaws from Apache

AddedVulnerabilityProductSeverityAttack chance
Oct 8, 2026Command InjectionCVE-2016-3081StrutsHigh 8.197%
Aug 4, 2026Missing Encryption of Sensitive DataCVE-2026-34486TomcatHigh 7.599%
Apr 16, 2026Improper Input ValidationCVE-2026-34197ActiveMQHigh 8.898%
May 1, 2025Improper Escaping of OutputCVE-2024-38475HTTP ServerCritical 9.1>99.9%
Apr 1, 2025Path EquivalenceCVE-2025-24813TomcatCritical 10.099.9%
Feb 4, 2025Forced BrowsingCVE-2024-45195OFBizCritical 9.8>99.9%
Sep 18, 2024Improper Access ControlCVE-2024-27348HugeGraph-ServerCritical 9.899.2%
Aug 27, 2024Incorrect AuthorizationCVE-2024-38856OFBizHigh 8.199.4%

All of them →

Sources: Known Exploited Vulnerabilities (CISA, public domain), CVE records (cve.org) and EPSS (FIRST). The chance of attacks is the EPSS estimate that someone will try to exploit the flaw in the next 30 days.