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.
Exploits (14)
nomisec
WORKING POC
3 stars
by AkbarTrilaksana · remote
https://github.com/AkbarTrilaksana/cve-2022-33891
nomisec
WORKING POC
1 stars
by K3ysTr0K3R · remote
https://github.com/K3ysTr0K3R/CVE-2022-33891-EXPLOIT
nomisec
SUSPICIOUS
1 stars
by Vulnmachines · poc
https://github.com/Vulnmachines/Apache-spark-CVE-2022-33891
nomisec
WORKING POC
1 stars
by DrLinuxOfficial · remote
https://github.com/DrLinuxOfficial/CVE-2022-33891
nomisec
WORKING POC
by ps-interactive · poc
https://github.com/ps-interactive/lab_security_apache_spark_emulation_detection
metasploit
WORKING POC
EXCELLENT
by Kostya Kortchinsky · rubypocunix
https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/http/apache_spark_rce_cve_2022_33891.rb
Nuclei Templates (1)
Apache Spark UI - Remote Command Injection
HIGHVERIFIEDby princechaddha
Shodan:
title:"Spark Master at" || http.html:"/apps/imt/html/" || http.title:"spark master at"
FOFA:
body="/apps/imt/html/" || title="spark master at"
References (4)
Scores
CVSS v3
8.8
EPSS
0.9351
EPSS Percentile
99.8%
Attack Vector
NETWORK
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Lab Environment
COMMUNITY
+32 more images
Community Lab
+10 more repos
Details
CISA KEV
2023-03-07
VulnCheck KEV
2022-12-21
InTheWild.io
2022-07-21
ENISA EUVD
EUVD-2022-0217
CWE
CWE-78
Status
published
Products (3)
apache/spark
< 3.0.3
org.apache.spark/spark-parent_2.12
0Maven
pypi/pyspark
0PyPI
Published
Jul 18, 2022
KEV Added
Mar 07, 2023
Tracked Since
Feb 18, 2026