CVE-2022-33891

Apache Spark shell command injection vulnerability via Spark UI

  • High 8.8
  • Exploited: added to CISA KEV 7 Mar 2023

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.

Key facts

Published
18 Jul 2022
Last changed
21 Oct 2025
Assigned by
apache
KEV added
7 Mar 2023
KEV fix due
28 Mar 2023
EPSS
93.244% likely to be exploited in the next 30 days, higher than 99.839% of CVEs (scores for 15 Nov 2026)
SSVC (CISA)
Exploitation: active; Automatable: no; Technical impact: total

Severity scores

Each score is shown as its source gave it. They are not averaged or merged.

  • 8.8CVSS 3.1, Highfrom CISA (ADP container)CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

What to do

  • Upgrade to supported Apache Spark maintenance release 3.1.3, 3.2.2, or 3.3.0 or laterCNA workaround statement
  • Apply updates per vendor instructions.CISA KEV required action

Historical context and remediation

This reference retains the original CVE publication date. A recent record update does not mean a new attack occurred.

No separately sourced impact summary is available on this page yet. Consult the description, version data and dated exploitation evidence.

Version statuses below come from the CNA. An “unaffected” version is not necessarily a currently supported release or proof of a patch date. EPSS is a dated risk estimate, not a count of historical attacks.

Read the original CVE record.

Affected products

VendorProductVersions
Apache Software FoundationApache Spark
  • 3.0.3 and earlier up to and including 3.0.3 (affected)
  • 3.1.1 to 3.1.2 up to and including 3.1.2 (affected)
  • 3.2.0 to 3.2.1 up to and including 3.2.1 (affected)

Timeline

  1. 18 Jul 2022 Published
  2. 7 Mar 2023 CVE-2022-33891 added to CISA KEV
  3. 7 Mar 2023 Added to the CISA KEV catalogue

Weakness

Practice this bug class

HackZoneLabs has a hands-on lab on OS command injection (CWE-78).

References