8.8

CVE-2022-33891: Apache Spark Command Injection Vulnerability

KEV
Analyzed
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) vulnerability in Apache Spark. It is known to be exploited: CISA lists it, first on 07-03-2023. EPSS estimates a 92.92% chance of exploitation in the next 30 days, higher than 99.8% of scored vulnerabilities. 2 public exploits are recorded.

Priority
Act nowlisted as exploited

Listed as exploited by CISA (07-03-2023)

Source freshness unavailable

How is this decided?
CVSS score
8.8/10
010
High · v3.1 (CVE.org)
EPSS score
92.92%
0%100%
Critical · -0.32 pp in 30 days
KEVExploited in the wildCritical · listed in 1 catalog
RansomwareNot flaggedNo ransomware 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 KEVExploitedApache Spark Command Injection Vulnerability
  3. 28-03-2023
    CISA remediation dueDeadline passedApply 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

92.92%

Chance of exploitation in the next 30 days

Percentile

100%

Versus all other CVEs

30-day change

Decrease -0.32 pp

From 93.24% on 04-11-2026

04-11-202604-12-2026

Known exploited

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

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

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

Version check

Known conditions: network-reachable, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.

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