CVE-2022-33891
highpriority · act · 90OT risk · criticalKEV · exploitedEPSS 0.932 · 100 %ileexploit · weaponizedEURUUSadded 2023-03-07remediate by 2023-03-28
required action Apply updates per vendor instructions.
EPSS · scored 2026-10-27
Apache Spark Command Injection Vulnerability
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
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
exploits (11)
Public proof-of-concept and weaponised exploit code.
- AkbarTrilaksana/cve-2022-33891AkbarTrilaksana/cve-2022-33891PoC · poc_in_github
- AmoloHT/CVE-2022-33891「💥」CVE-2022-33891 - Apache Spark Command InjectionPoC · poc_in_github
- DrLinuxOfficial/CVE-2022-33891CVE-2022-33891 Exploit For Apache SparkPoC · poc_in_github
- HuskyHacks/cve-2022-33891Apache Spark Shell Command Injection VulnerabilityPoC · poc_in_github
- Vulnmachines/Apache-spark-CVE-2022-33891Apache Spark RCE - CVE-2022-33891PoC · poc_in_github
affected products (16)
Products and version ranges known to be affected.
- Maven org.apache.spark:spark-parent_2.123.1.1 → 3.2.2osvUSpkg:maven/org.apache.spark/spark-parent_2.12
advisories (3)
Vendor and ecosystem advisories describing this.
- GHSA-4x9r-j582-cgr8Apache Spark UI can allow impersonation if ACLs enabled2022-07-19ghsa · osvUS
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.
- BIT-spark-2022-33891Apache Spark shell command injection vulnerability via Spark UI2024-03-06vendor · osvUS
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.
- PYSEC-2022-2362022-07-18vendor · osvUS
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.
also known as (8)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (12)
External citations — patches, advisories, analysis.
- http://www.openwall.com/lists/oss-security/2023/05/02/1cnnvd
- https://cxsecurity.com/cveshow/CVE-2022-33891/cnnvd
- https://lists.apache.org/thread/p847l3kopoo5bjtmxrcwk21xp6tjxqlccnnvd
- https://packetstormsecurity.com/files/168309/Apache-Spark-Unauthenticated-Command-Injection.htmlcnnvd
- https://www.cybersecurity-help.cz/vdb/SB2022071809cnnvd
- http://packetstormsecurity.com/files/168309/Apache-Spark-Unauthenticated-Command-Injection.htmlenisa_euvd
- http://www.openwall.com/lists/oss-security/2023/05/02/1enisa_euvd
- https://lists.apache.org/thread/p847l3kopoo5bjtmxrcwk21xp6tjxqlcenisa_euvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan