BreachSpiderVerified, not vibes

CVE-2022-33891 in Apache Spark

Known-exploited (CISA) since 2023-03-07 High 8.8

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 impersonati...

Affects 1 product from 1 vendor. Facts below cite their sources.

CVSS 3.18.8
EPSS82.0%
EPSS percentile100th
FixSee advisory

Remotely exploitable over the network, low complexity, low privileges required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.

Affected products and versions

VendorProductAffected versions
Apache Spark ≤ 3.0.3 ≥ 3.1.1, ≤ 3.1.2 ≥ 3.2.0, ≤ 3.2.1

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

View Vendor Advisory →

Exploitation

CISA known-exploitedYes added 2023-03-07
Public exploitNot confirmed

Official 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.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2022-33891
BreachSpider IDBS-2022-GLOBAL-278099-H
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Published2022-07-18
Last modified2025-10-23
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-78: OS Command Injection

Attacker injects OS commands through application inputs passed to system() or equivalent calls, leading to arbitrary command execution.

Related attack patterns (CAPEC)

CAPEC-43 Exploiting Multiple Input Interpretation Layers via CWE-78

CAPEC-108 Command Line Execution through SQL Injection via CWE-78

CAPEC-6 Argument Injection via CWE-78

CAPEC-15 Command Delimiters via CWE-78

CAPEC-88 OS Command Injection via CWE-78

Mapping is CWE to CAPEC per MITRE CAPEC 3.9.

Analysis AI-written, not human-reviewed

CVE-2022-33891 affects Apache Spark versions 3.0.3 and earlier, 3.1.1 to 3.1.2, and 3.2.0 to 3.2.1, allowing a malicious user to perform impersonation and execute arbitrary shell commands. This vulnerability has a CVSS score of 8.8 and is listed in the KEV catalog with a public proof of concept available. Immediate action is required to mitigate the risk of exploitation.

The vulnerability arises from the Apache Spark UI's configuration option `spark.acls.enable`, which, when enabled, allows a code path in `HttpSecurityFilter` to be exploited. A malicious user can provide an arbitrary username to impersonate another user, bypassing authentication checks. This leads to the execution of arbitrary shell commands with the privileges of the Spark user, potentially leading to full system compromise.

Compensating controls AI-drafted, review before use

Implement strict network segmentation and access controls to limit exposure of the Apache Spark UI to untrusted networks. Ensure that only authorized users have access to the UI and that all interactions are logged and monitored.

NERC CIP: CIP-007 CIP-007-R2

IEC 62443: SR 7.6

Not validated for your network. A compensating control does not replace the vendor fix.

Questions

What is CVE-2022-33891?

CVE-2022-33891 affects Apache Spark versions 3.0.3 and earlier, 3.1.1 to 3.1.2, and 3.2.0 to 3.2.1, allowing a malicious user to perform impersonation and execute arbitrary shell commands. This vulnerability has a CVSS score of 8.8 and is listed in the KEV catalog with a public proof of concept available. Immediate action is required to mitigate the risk of exploitation.

What is the CVSS score for CVE-2022-33891?

CVE-2022-33891 has CVSS 8.8 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H. EPSS: 82.0%.

Is CVE-2022-33891 actively exploited?

Yes. CVE-2022-33891 is in the CISA known-exploited catalog (added 2023-03-07). Active exploitation confirmed. Immediate patching required.

How do I remediate CVE-2022-33891?

Priority: IMMEDIATE. Advisory: https://lists.apache.org/thread/p847l3kopoo5bjtmxrcwk21xp6tjxqlc

What systems are affected by CVE-2022-33891?

CVE-2022-33891 affects Apache Spark.

What NERC-CIP standard applies to CVE-2022-33891?

NERC CIP CIP-007 CIP-007-R2: This CVE violates CIP-007-R2 because it allows unauthorized access to the Apache Spark UI, which could lead to the execution of arbitrary commands and potential compromise of critical systems.

What IEC 62443 requirement maps to CVE-2022-33891?

IEC 62443 SR 7.6: This CVE maps to SR 7.6 because it involves a vulnerability in the authentication and authorization mechanisms of the Apache Spark UI, which could allow unauthorized access and command execution, compromising the security of the industrial control system.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Apache","product":"Spark","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2025-10-23.