CVE-2022-33891: Apache Spark Command Injection Vulnerability
Reference page built from the source records below, each shown as its source publishes it. Dataset version ref-39564fa0a75e, updated 2026-11-02T23:39:54.475Z.
CISA Known Exploited Vulnerabilities
- Name
- Apache Spark Command Injection Vulnerability
- Vendor
- Apache
- Product
- Spark
- Added to the catalog
- 2023-03-07
- Due date for US federal agencies
- 2023-03-28
- Weaknesses
- CWE-78
- Catalog version
- 2026.10.30
Apache Spark contains a command injection vulnerability via Spark User Interface (UI) when Access Control Lists (ACLs) are enabled.
Required action (CISA)
Apply updates per vendor instructions.
Ransomware use: CISA does not mark known use of this vulnerability in ransomware campaigns.
Links in CISA's notes
- https://lists.apache.org/thread/p847l3kopoo5bjtmxrcwk21xp6tjxqlc
- https://nvd.nist.gov/vuln/detail/CVE-2022-33891
Read on 2026-11-02T23:39:54.475Z under licence cisa-kev-cc0@b0067899 from https://www.cisa.gov/sites/default/files/feeds/known_exploited_vulnerabilities.json
NVD analysis
- Status
- Analyzed
- Published
- 2022-07-18T07:15:07.600
- Last modified
- 2026-06-17T04:49:25.943
- Weaknesses
- CWE-78
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.
| Metric | Score | Severity | Vector | Scored by |
|---|---|---|---|---|
| CVSS 3.1 | 8.8 | HIGH | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H | [email protected] (Primary) |
| CVSS 3.1 | 8.8 | HIGH | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H | 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) |
References
- http://packetstormsecurity.com/files/168309/Apache-Spark-Unauthenticated-Command-Injection.html (Exploit, Third Party Advisory, VDB Entry)
- http://www.openwall.com/lists/oss-security/2023/05/02/1 (Mailing List, Third Party Advisory)
- https://lists.apache.org/thread/p847l3kopoo5bjtmxrcwk21xp6tjxqlc (Mailing List, Third Party Advisory)
- http://packetstormsecurity.com/files/168309/Apache-Spark-Unauthenticated-Command-Injection.html (Exploit, Third Party Advisory, VDB Entry)
- http://www.openwall.com/lists/oss-security/2023/05/02/1 (Mailing List, Third Party Advisory)
- https://lists.apache.org/thread/p847l3kopoo5bjtmxrcwk21xp6tjxqlc (Mailing List, Third Party Advisory)
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2022-33891 (Third Party Advisory, US Government Resource)
This product uses the NVD API but is not endorsed or certified by the NVD.
Read on 2026-11-02T23:41:59.479Z under licence nvd-api-terms-of-use@ff2a5288 from https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2022-33891
CVE record
- Title (CNA)
- Apache Spark shell command injection vulnerability via Spark UI
- Assigner
- apache
- State
- PUBLISHED
- Published
- 2022-07-18T00:00:00.000Z
- Updated
- 2025-10-21T23:15:38.160Z
- Problem types
- CWE-78 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
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.
References
- https://lists.apache.org/thread/p847l3kopoo5bjtmxrcwk21xp6tjxqlc
- http://packetstormsecurity.com/files/168309/Apache-Spark-Unauthenticated-Command-Injection.html
- [oss-security] 20230502 CVE-2023-32007: Apache Spark: Shell command injection via Spark UI
Read on 2026-11-03T02:01:21.521Z under licence cve-terms-of-use@81bfa2f3 from https://raw.githubusercontent.com/CVEProject/cvelistV5/main/cves/2022/33xxx/CVE-2022-33891.json
GitHub Advisory Database
GHSA-4x9r-j582-cgr8: Apache Spark UI can allow impersonation if ACLs enabled
- Severity (GitHub)
- high
- CVSS
- 8.8 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H/E:H
- Weaknesses
- CWE-78
- Published
- 2022-07-19T00:00:29Z
- Updated
- 2026-06-09T12:58:12Z
- maven org.apache.spark:spark-parent_2.12: affected <= 3.0.3
- maven org.apache.spark:spark-parent_2.12: affected >= 3.1.1, < 3.2.2, first patched 3.2.2
- pip pyspark: affected >= 0, < 3.1.3, first patched 3.1.3
- pip pyspark: affected >= 3.2.0, < 3.2.2, first patched 3.2.2
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.
A previous version of this advisory incorrectly stated that version 3.1.3 was not vulnerable. Per [GHSA-59hw-j9g6-mfg3](https://github.com/advisories/GHSA-59hw-j9g6-mfg3), version 3.1.3 is vulnerable and vulnerable version ranges in this advisory have been changed to reflect the correct information.
Read on 2026-11-03T10:52:41.781Z under licence ghsa-cc-by-4.0@9e5f1b3c from https://api.github.com/advisories/GHSA-4x9r-j582-cgr8
Also known as / affected packages
GHSA-4x9r-j582-cgr8
Also known as: CVE-2022-33891. OSV.dev record, GitHub advisory.
- Maven org.apache.spark:spark-parent_2.12: introduced 0, last_affected 3.0.3
- Maven org.apache.spark:spark-parent_2.12: introduced 3.1.1, fixed 3.2.2
- PyPI pyspark: introduced 0, fixed 3.1.3
- PyPI pyspark: introduced 3.2.0, fixed 3.2.2
Read on 2026-11-03T01:49:40.934Z under licence ghsa-cc-by-4.0@9e5f1b3c from https://api.osv.dev/v1/vulns/GHSA-4x9r-j582-cgr8
Detection rules (SigmaHQ)
SigmaHQ rules whose own tags name this CVE. Each rule page shows the rule as its author published it.
- Apache Spark Shell Command Injection - Weblogs (status test, level high)
- Apache Spark Shell Command Injection - ProcessCreation (status test, level high)
Defensive techniques (MITRE D3FEND)
D3FEND maps these defensive techniques to the weakness (CWE) that NVD lists for this CVE, through the digital artifacts the weakness affects. D3FEND does not say they stop this vulnerability.
CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
- Model: Asset Vulnerability Enumeration (acts on Software)
- Harden: Software Update (acts on Software)
- Restore: Restore Software (acts on Software)
- Harden: Domain Logic Validation (acts on Subroutine)
- Harden: Variable Initialization (acts on Subroutine)
- Harden: Credential Scrubbing (acts on Subroutine)
- Harden: Trusted Library (acts on Subroutine)
- Isolate: Application-based Process Isolation (acts on Subroutine)
- Model: Software Inventory (acts on Software)
D3FEND ontology version 1.6.0.
Read on 2026-11-02T23:54:16.526Z under licence d3fend-terms-of-use@f98cbc7e from https://d3fend.mitre.org/api/weakness/cwe/CWE-78.json
MITRE D3FEND™ knowledge graph. © 2025 The MITRE Corporation.
"The MITRE Corporation (MITRE) hereby grants you a non-exclusive, royalty-free license to use D3FEND for research, development, and commercial purposes. Any copy you make for such purposes is authorized provided that you reproduce MITRE's copyright designation and this license in any such copy." Terms: https://d3fend.mitre.org/tou/
Sources and licences
CISA
Source: CISA Catalog of Known Exploited Vulnerabilities, version 2026.10.30, CC0 1.0. Use of this data does not imply endorsement by CISA or DHS.
National Vulnerability Database (NIST)
This product uses the NVD API but is not endorsed or certified by the NVD.
NVD API Terms of Use (NIST publications in the public domain, 17 U.S.C. 105)
CVE Program, The MITRE Corporation
Copyright © 1999-2026, The MITRE Corporation. CVE is a trademark and the CVE logo is a registered trademark of The MITRE Corporation. CVE Usage: MITRE hereby grants you a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, sublicense, and distribute Common Vulnerabilities and Exposures (CVE™). Any copy you make for such purposes is authorized provided that you reproduce MITRE's copyright designation and this license in any such copy.
GitHub Advisory Database
Source: GitHub Advisory Database, https://github.com/advisories/GHSA-4x9r-j582-cgr8, licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Changes: fields selected and reformatted by ransomware-tracker.com.
GitHub Advisory Database via OSV.dev
GHSA-4x9r-j582-cgr8: GitHub Advisory Database, https://github.com/advisories/GHSA-4x9r-j582-cgr8. Licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/), provided as is, without warranties. Retrieved via OSV.dev (https://osv.dev/vulnerability/GHSA-4x9r-j582-cgr8), which enriches records; fields selected and reformatted by ransomware-tracker.com.
SigmaHQ
"Apache Spark Shell Command Injection - Weblogs" by Nasreddine Bencherchali (Nextron Systems) (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules-emerging-threats/2022/Exploits/CVE-2022-33891/web_cve_2022_33891_spark_shell_command_injection.yml.
Licensed under the Detection Rule License (DRL) 1.1: https://github.com/SigmaHQ/Detection-Rule-LicenseSigmaHQ
"Apache Spark Shell Command Injection - ProcessCreation" by Nasreddine Bencherchali (Nextron Systems) (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules-emerging-threats/2022/Exploits/CVE-2022-33891/proc_creation_lnx_exploit_cve_2022_33891_spark_shell_command_injection.yml.
Licensed under the Detection Rule License (DRL) 1.1: https://github.com/SigmaHQ/Detection-Rule-LicenseMITRE D3FEND
MITRE D3FEND™ knowledge graph. © 2025 The MITRE Corporation.
"The MITRE Corporation (MITRE) hereby grants you a non-exclusive, royalty-free license to use D3FEND for research, development, and commercial purposes. Any copy you make for such purposes is authorized provided that you reproduce MITRE's copyright designation and this license in any such copy." Terms: https://d3fend.mitre.org/tou/MITRE D3FEND Terms of Use (site + knowledge graph); source repo MIT
Cite this page
Dragons Eye Ransomware Tracker, "CVE-2022-33891: Apache Spark Command Injection Vulnerability",
entity page, dataset version ref-39564fa0a75e, updated 2026-11-02T23:39:54.475Z,
https://ransomware-tracker.com/cve/CVE-2022-33891 (accessed 2026-11-03).
Underlying source: CISA Catalog of Known Exploited Vulnerabilities, version 2026.10.30.
Underlying source: National Vulnerability Database (NIST), CVE API 2.0, record last modified 2026-06-17T04:49:25.943.
Underlying source: CVE List (CVE Program, The MITRE Corporation), record updated 2025-10-21T23:15:38.160Z.
Underlying source: GitHub Advisory Database, GHSA-4x9r-j582-cgr8, updated 2026-06-09T12:58:12Z.
Underlying source: GitHub Advisory Database, GHSA-4x9r-j582-cgr8, via OSV.dev, modified 2026-06-09T13:15:17.419178115Z.
Underlying source: SigmaHQ rule 1a9a04fd-02d1-465c-abad-d733fd409f9c, commit ccbb0369507f796db0b0ae6854c8a2be471b9d84.
Underlying source: SigmaHQ rule c8a5f584-cdc8-42cc-8cce-0398e4265de3, commit ccbb0369507f796db0b0ae6854c8a2be471b9d84.
Underlying source: MITRE D3FEND, ontology version 1.6.0.
Pages change. The dataset version identifies the data, but no archive of old versions is kept, so this citation cannot be replayed later.