Skip to main content

CVE-2022-33891

Apache — Apache Spark Command Injection Vulnerability

Apache · CWE-78 — Operating system command injection · in CISA KEV since 2023-03-07

KEV since 2023 · listed over a yearCISA KEVActively Exploited
84

EVRS 84 of 100 Urgent

Patch This Cycle

Rank 480 of 2,960 tracked

Download PDF

Why it scores 84

Evidence available: 6 of 7 signals

Listed in the CISA KEV catalog, and an EPSS probability of 0.932.

  • CISA KEVApplied
  • RansomwareDid not apply
  • Vendor exploitationDid not apply
  • EPSSApplied
  • Microsoft Exploitability IndexNot applicable
  • Pre-patch disclosureNo data
  • KEV recencyDid not apply
  • CVSSApplied

The band answers “how soon”, not “how bad”. No data for: Pre-patch disclosure. Why some signals show no data

Fix

Patch or fixed version identified

CISA required action

Fixed in

  • org.apache.spark:spark-parent_2.123.2.2
  • pyspark3.1.33.2.2update to this version or later in your release line

Affected versions

  • org.apache.spark:spark-parent_2.12 (maven)affected <= 3.0.3, no fixed version listedaffected >= 3.1.1, < 3.2.2, fixed in 3.2.2
  • pyspark (pip)affected >= 0, < 3.1.3, fixed in 3.1.3affected >= 3.2.0, < 3.2.2, fixed in 3.2.2

Remediation

Apply updates per vendor instructions.

Fixed versions from NVD and GitHub. Affected packages also in GitHub Advisory GHSA-4x9r-j582-cgr8 (CC BY 4.0).

Evidence

Each value with its source
MeasureValueSource
CVSS base scoreHow severe the flaw is in itself. It does not say how likely an attack is. 8.8 NVD
FIRST EPSSFIRST's estimate of the chance this is exploited in the next 30 days, and how that ranks against all CVEs. 0.932 (99.84th pctl) FIRST EPSS
Actively exploitedWhether a source of record has confirmed attacks using it in the wild. Confirmed CISA KEV
Ransomware campaign useWhether CISA has seen ransomware operators use it. Unknown or none CISA KEV
CISA remediation deadlineThe date US federal agencies must have fixed or mitigated it. 2023-03-28 · KEV since 2023 · listed over a year CISA KEV
Public exploit moduleA module existing is not the same as active exploitation. Public module exists Metasploit
EUVD cross-referenceENISA's record: CVSS 8.8 (v3.1), assigned by apache. Listed ENISA EUVD

Description

NVD

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.

What CISA says to do

Public module

Metasploit lists a public excellent-rank module for this CVE: Apache Spark Unauthenticated Command Injection RCE (linux/http/apache_spark_rce_cve_2022_33891). A module existing is not the same as active exploitation; see metasploit.com.