8.8

CVE-2022-33891: Apache Spark Command Injection Vulnerability

CVSS: 8.8v3.1HighKEVAnalyzed
AliasesGHSA-4x9r-j582-cgr8BIT-spark-2022-33891PYSEC-2022-236
Published 18-07-2022Last modified 21-10-2025

Vulnerability summary

CVE-2022-33891 is a high (CVSS 8.8) OS Command Injection vulnerability in Apache Spark. It is known to be exploited: CISA lists it, first on 07-03-2023. EPSS estimates a 93.24% chance of exploitation in the next 30 days, higher than 99.8% of scored vulnerabilities. 2 public exploits are recorded.

Overall risk
85/100
0100
Critical · default modelHow is this calculated?
CVSS score
8.8/10
010
High · v3.1 (CVE.org)
EPSS score
93.24%
0%100%
Critical · +0.17 pp in 30 days
KEVListedCISA
RansomwareNone recordedNo known use recorded
Public exploits2reference, metasploit

Advisory lineage

Upstream 0 · Downstream 1 · Related 1

Timeline

  1. 18-07-2022
    PublishedVulnerability first disclosed.
  2. 07-03-2023
    Added to CISA KEVApache Spark Command Injection Vulnerability
  3. 28-03-2023
    CISA remediation dueApply updates per vendor instructions.
  4. 21-10-2025
    Last modifiedVulnerability information updated.

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.

CVSS metrics

6 scores · 4 sources · 2 versions

EPSS trend

Probability

93.24%

Chance of exploitation in the next 30 days

Percentile

100%

Versus all other CVEs

30-day change

+0.17 pp

From 93.08% on 18-09-2026

18-09-202618-10-2026
EPSS score
93.24%

Known exploited

Compare KEV catalogs
CISA KEVListed
Added
07-03-2023
Federal due date
28-03-2023

Public exploits

2 found
  • referenceUnverified

    Exploit Reference (packetstormsecurity.com)

    Maturity: unknown

  • MetasploitMetasploitremoteVerified

    Apache Spark Unauthenticated Command Injection RCE

    exploit/linux/http/apache_spark_rce_cve_2022_33891

    Maturity: weaponized

Weaknesses

CWE · root cause

Affected systems

Apache1 product
  • spark≤ 3.0.3 | ≥ 3.1.1, ≤ 3.1.2 | ≥ 3.2.0, ≤ 3.2.1
Apache software foundation1 product
  • apache spark≥ 3.0.3 and earlier, ≤ 3.0.3 | ≥ 3.1.1 to 3.1.2, ≤ 3.1.2 | ≥ 3.2.0 to 3.2.1, ≤ 3.2.1
Org.apache.spark1 product
  • spark-parent_2.12≤ 3.0.3 | ≥ 3.1.1, < 3.2.2
PyPI1 product
  • pyspark< 3.1.3 | ≥ 3.2.0, < 3.2.2

4 vendors · 4 products

References

10 links