CVE-2022-33891Apache Spark
Command Injection in Apache Spark UI with ACLs Enabled
High 8.8 KEV High EPSS
Follow: this CVE · Apache · Apache Spark We alert you by email or Slack (account required).
- Priority
- 61
- CVSS 3.1
- 8.8
- EPSS
- 82.0% probability of exploitation in 30 days · percentile 100
- Auth required
- Yes
- In KEV since
- Mar 7, 2023
- CISA deadline
- Mar 28, 2023
- Ransomware use
- Unknown
- Published
- Jul 18, 2022
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-78
- SSVC (CISA)
- Exploitation: active · Automatable: no · Technical impact: total
- Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
What happens
Apache Spark allows arbitrary shell command execution through the web interface when ACLs are enabled. An authenticated user can impersonate other users and execute commands with Spark process privileges. CISA confirmed this vulnerability is actively exploited.
Show the original NVD text
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.
Exploitation confirmed by CISA
Apache Spark contains a command injection vulnerability via Spark User Interface (UI) when Access Control Lists (ACLs) are enabled.
Action required by CISA: Apply updates per vendor instructions.
What to do
Patch available · fixed versions: 3.1.3, 3.2.2
Update Apache Spark to version 3.0.4, 3.1.3, 3.2.2 or later. If you cannot update, disable spark.acls.enable in the configuration.
- Apply the vendor's security update for Spark.
- CISA has confirmed it is exploited: treat it as urgent. The deadline for US federal agencies was March 28, 2023.
- Check logs for signs of earlier exploitation.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Maven | org.apache.spark:spark-parent_2.12 |
≤ 3.0.3 |
no fixed version | — |
| Maven | org.apache.spark:spark-parent_2.12 |
≥ 3.1.1 < 3.2.2 |
3.2.2 |
— |
| PyPI | pyspark |
< 3.1.3 |
3.1.3 |
pip install "pyspark>=3.1.3" |
| PyPI | pyspark |
≥ 3.2.0 < 3.2.2 |
3.2.2 |
pip install "pyspark>=3.2.2" |
| PyPI | pyspark |
< 3.1.3 |
3.1.3 |
pip install "pyspark>=3.1.3" |
| PyPI | pyspark |
≥ 3.2.0 < 3.2.2 |
3.2.2 |
pip install "pyspark>=3.2.2" |
Per OSV / GitHub Advisories (GHSA-4x9r-j582-cgr8, PYSEC-2022-236). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| apache | spark | ≤ 3.0.3 |
| apache | spark | ≥ 3.1.1 ≤ 3.1.2 |
| apache | spark | ≥ 3.2.0 ≤ 3.2.1 |
Official sources
References
Links published by the sources. Open them with care.
- packetstormsecurity.com Exploit Third Party Advisory VDB Entry
- www.openwall.com Mailing List Third Party Advisory
- lists.apache.org Mailing List Third Party Advisory
- www.cisa.gov Third Party Advisory US Government Resource