CVE-2022-33891
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.
Weakness
- CWE-78: Improper Neutralization of Special Elements used in an OS Command
CISA Known Exploited Vulnerabilities entry
| Vulnerability name | Apache Spark Command Injection Vulnerability |
|---|---|
| Vendor / product | Apache / Spark |
| Date added | 2023-03-07 |
| Federal remediation due date | 2023-03-28 |
| Required action | Apply updates per vendor instructions. |
| Known ransomware campaign use | Unknown |
CISA SSVC decision points
| Exploitation | active |
|---|---|
| Automatable | no |
| Technical impact | total |
| Scored | 2025-02-04 |
Timeline
- 2022-07-18Published by the CNA00:00 UTC
- 2022-07-19GitHub advisory published (GHSA-4x9r-j582-cgr8)1 day after publication
- 2023-03-07Added to the CISA KEV catalog232 days after publication
- 2025-02-04CISA SSVC decision recorded932 days after publication
Exploit and advisory records
Nuclei templates:
- CVE-2022-33891: Apache Spark UI - Remote Command Injection
GitHub advisory GHSA-4x9r-j582-cgr8, affected packages:
| Package | Vulnerable versions | Fixed in |
|---|---|---|
| Maven org.apache.spark:spark-parent_2.12 | through 3.0.3 | |
| Maven org.apache.spark:spark-parent_2.12 | from 3.1.1 before 3.2.2 | 3.2.2 |
| PyPI pyspark | before 3.1.3 | 3.1.3 |
| PyPI pyspark | from 3.2.0 before 3.2.2 | 3.2.2 |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| apache spark | through 3.0.3no fix listedfrom 3.1.1 through 3.1.2no fix listedfrom 3.2.0 through 3.2.1no fix listed | not listednot listednot listed |
References
- http://packetstormsecurity.com/files/168309/Apache-Spark-Unauthenticated-Command-Injection.html
- http://www.openwall.com/lists/oss-security/2023/05/02/1
- https://lists.apache.org/thread/p847l3kopoo5bjtmxrcwk21xp6tjxqlc
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2022-33891
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2022-33891'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2022-33891'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2022-33891'curl 'https://api.contrastcyber.com/cve_products/CVE-2022-33891'curl 'https://api.contrastcyber.com/kev_lookup/CVE-2022-33891'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).