CVE-2022-33891

HIGH KEV NUCLEI LAB

Apache Spark UI - Privilege Escalation

Title source: llm

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 88 stars
by HuskyHacks · remote
https://github.com/HuskyHacks/cve-2022-33891
nomisec WORKING POC 52 stars
by W01fh4cker · remote
https://github.com/W01fh4cker/cve-2022-33891
nomisec WORKING POC 25 stars
by AmoloHT · remote
https://github.com/AmoloHT/CVE-2022-33891
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
gitlab WRITEUP
by vital6 · poc
https://gitlab.com/vital6/cve-2022-33891
nomisec WORKING POC
by asepsaepdin · remote
https://github.com/asepsaepdin/CVE-2022-33891
nomisec WORKING POC
by ps-interactive · poc
https://github.com/ps-interactive/lab_security_apache_spark_emulation_detection
nomisec WRITEUP
by elsvital · poc
https://github.com/elsvital/cve-2022-33891-fix
nomisec WORKING POC
by nanaao · poc
https://github.com/nanaao/CVE-2022-33891
vulncheck_xdb WORKING POC
remote
https://github.com/Shelter1234/VulneraLab
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"

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
Community Lab
docker pull docker.io/bitnami/spark:3.1.1
docker pull shelter2024/apache-archiva-v2.2.7_web
docker pull shelter2024/spark-v3.1.1-web
docker pull shelter2024/apache-servicecomb-service-center-v2.1.0-web
docker pull shelter2024/boidcms-v2.0.0-web
+32 more images
+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