RCE in Apache Spark

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.

Vulnerability class: Command Injection (OS Command Injection)

EPSS: 0.931 (99.8th percentile) — read the EPSS interpretation.

CVSS v3 metric

CVSS v3 base score 8.8 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.

Affected products

Weakness classification (CWE)

CISA KEV (Known Exploited Vulnerabilities)

This CVE is on the CISA KEV catalog, added on . CISA KEV inclusion means CISA has confirmed in-the-wild exploitation; US federal agencies are required to remediate within a published due date.

BOD 22-01 due date: .

Required action: Apply updates per vendor instructions.

Public proof-of-concept exploits

References

Frequently asked questions

What is CVE-2022-33891?
CVE-2022-33891 is a high-severity vulnerability in Apache Spark, classified under OS Command Injection. CVSS score: 8.8/10. Published 2022-07-18.
How severe is CVE-2022-33891?
High severity. CVSS v3 base score is 8.8 out of 10.
Is CVE-2022-33891 known to be exploited?
Yes. CVE-2022-33891 is listed in the CISA Known Exploited Vulnerabilities catalog (added 2023-03-07), indicating it is being actively exploited. 60 public proof-of-concept repositories are indexed.