CVE-2022-33891

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.

Severity
HIGH
CVSS v3
8.8
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H · source nvd
Exploit chance (EPSS)
92.923%
chance of exploitation in the next 30 days
higher than 99.8% of scored CVEs · 2026-11-17
CISA KEV
Listed
added 2023-03-07
Public exploit code
Yes
Exploit references (NVD and CNA): 1
Metasploit modules: 1
Nuclei templates: 1

Weakness

CISA Known Exploited Vulnerabilities entry

Vulnerability nameApache Spark Command Injection Vulnerability
Vendor / productApache / Spark
Date added2023-03-07
Federal remediation due date2023-03-28
Required actionApply updates per vendor instructions.
Known ransomware campaign useUnknown

CISA SSVC decision points

Exploitationactive
Automatableno
Technical impacttotal
Scored2025-02-04

Timeline

  1. 2022-07-18Published by the CNA00:00 UTC
  2. 2022-07-19GitHub advisory published (GHSA-4x9r-j582-cgr8)1 day after publication
  3. 2023-03-07Added to the CISA KEV catalog232 days after publication
  4. 2025-02-04CISA SSVC decision recorded932 days after publication

The timeline shows what already happened. To be told when this CVE changes next, watch it from the API.

Exploit and advisory records

Nuclei templates:

GitHub advisory GHSA-4x9r-j582-cgr8, affected packages:

PackageVulnerable versionsFixed in
Maven org.apache.spark:spark-parent_2.12through 3.0.3
Maven org.apache.spark:spark-parent_2.12from 3.1.1 before 3.2.23.2.2
PyPI pysparkbefore 3.1.33.1.3
PyPI pysparkfrom 3.2.0 before 3.2.23.2.2

Affected products

Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.

ProductVulnerable versionsFixed in
apache sparkthrough 3.0.3no fix listedfrom 3.1.1 through 3.1.2no fix listedfrom 3.2.0 through 3.2.1no fix listednot listednot listednot listed

Products and versions as NVD and the vendor that published the CVE list them.

References

Get more CVE data from the API.

Free without a key or signup. Pro adds monitoring and higher limits: pricing.

Sources