CVE-2022-33891
CONFIRMED EXPLOITEDApache Spark Command Injection Vulnerability
Is Apache Spark affected by CVE-2022-33891?
Apache Spark is listed in the CISA Known Exploited Vulnerabilities catalog for CVE-2022-33891, added on 2023-03-07. CISA only adds a CVE once it has evidence of exploitation in the wild, so the patching question is not whether it can be attacked but how soon your instances must be updated.
Affected products published by NIST NVD (3 vulnerable CPE entries): apache spark.
Published CPE version bounds mark releases up to and including 3.0.3, 3.1.2 and 3.2.1 as vulnerable. Confirm the patched release in the vendor advisory below before treating any upgrade as complete.
The CISA remediation deadline for this entry is 2023-03-28.
RELATED VULNERABILITY DOSSIERS
Other catalog entries that share this product, vendor, or weakness, or that sit next to this advisory in the CISA KEV timeline.
- CVE-2026-129448Same vendorApache Roller
Apache Roller Deserialization of Untrusted Data Vulnerability
- CVE-2026-90436Same vendorApache Axis
Apache Axis Unsafe Reflection Vulnerability
- CVE-2016-3081Same vendorApache Struts
Apache Struts Command Injection Vulnerability
- CVE-2026-34486Same vendorApache Tomcat
Apache Tomcat Missing Encryption of Sensitive Data Vulnerability
- CVE-2022-28810Neighboring entryZoho ManageEngine
Zoho ManageEngine ADSelfService Plus Remote Code Execution Vulnerability
- CVE-2022-35914Neighboring entryTeclib GLPI
Teclib GLPI Remote Code Execution Vulnerability
1. VULNERABILITY OVERVIEW & TECHNICAL MECHANISM
Apache Spark contains a command injection vulnerability via Spark User Interface (UI) when Access Control Lists (ACLs) are enabled.
Get Stack Watch email when a KEV hits your stack ($99/year or $12/month)
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.
2. AFFECTED VERSIONS, PRODUCTS & VERIFIED CPE CONFIGURATIONS
3. EXPLOITATION EVIDENCE, IMPACT & HOW TO DETECT IT
This vulnerability was added to the CISA Known Exploited Vulnerabilities (KEV) catalog on 2023-03-07. Inclusion in KEV requires verified evidence of active exploitation in the wild. Known ransomware campaign use is recorded by CISA as: "Unknown".
Note: KEV inclusion confirms that threat actors have exploited this flaw in real-world incidents; it does not imply every deployment of Spark has been compromised.
- CVSS vector indicates high impact to Confidentiality (C:H), Integrity (I:H), and Availability (A:H) of the affected component.
- HTTP / web application surface (Apache Spark): inspect reverse-proxy, WAF, and application access/error logs alongside `Zeek http.log` and `Suricata eve.json` for anomalous requests targeting exposed endpoints.
- Command/Argument Injection class (CWE-77/78/88): monitor process trees for `/bin/sh`, `bash`, `cmd.exe`, `powershell`, `curl`, or `wget` spawned as child processes of the service daemon.
- Inventory all hosts running Apache Spark and compare installed package/build versions against the NVD CPE configurations and vendor advisory below.
4. FIXED VERSION, MITIGATIONS & OFFICIAL ADVISORY CITATIONS
Apply updates per vendor instructions.
- http://packetstormsecurity.com/files/168309/Apache-Spark-Unauthenticated-Command-Injection.htmlExploitThird Party AdvisoryVDB Entry
- http://www.openwall.com/lists/oss-security/2023/05/02/1Mailing ListThird Party Advisory
- https://lists.apache.org/thread/p847l3kopoo5bjtmxrcwk21xp6tjxqlcMailing ListThird Party Advisory
- http://packetstormsecurity.com/files/168309/Apache-Spark-Unauthenticated-Command-Injection.htmlExploitThird Party AdvisoryVDB Entry
- http://www.openwall.com/lists/oss-security/2023/05/02/1Mailing ListThird Party Advisory
- https://lists.apache.org/thread/p847l3kopoo5bjtmxrcwk21xp6tjxqlcMailing ListThird Party Advisory
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2022-33891Third Party AdvisoryUS Government Resource
SCORING & VECTOR TELEMETRY
Primary assessment authored by NIST NVD (nvd@nist.gov).
EPSS estimates the statistical probability of exploitation activity in the next 30 days—it is not proof of confirmed exploitation.
RELEVANT DEFENSIVE TOOLS
Curated open-source defensive and verification utilities from The Loot applicable to this asset class:
Fast, template-driven vulnerability scanner by ProjectDiscovery
Intercepting web proxy and automated web application security testing tool
Multi-threaded IDS, IPS, and network security monitoring engine
Behavior-based open-source intrusion prevention system (IPS) and log analysis engine