CVE-2022-33891
Confirmed PUBLISHEDApache Spark shell command injection vulnerability via Spark UI
Recommended Action
Prioritize remediation. Validate affected assets and apply vendor fixes on an accelerated timeline.
At a Glance
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.
- CVE Published
- Jul 18, 2022
- Exploitation Reported
- Mar 07, 2023
- CVSS
- 8.8 High
- EPSS
- 93.0%
Affected Versions
| Vendor | Product | Version | Status |
|---|---|---|---|
| Apache Software Foundation |
Apache Spark
|
3.0.3 and earlier to <= 3.0.3 |
Affected |
| Apache Software Foundation |
Apache Spark
|
3.1.1 to 3.1.2 to <= 3.1.2 |
Affected |
| Apache Software Foundation |
Apache Spark
|
3.2.0 to 3.2.1 to <= 3.2.1 |
Affected |
CVE References
- [oss-security] 20230502 CVE-2023-32007: Apache Spark: Shell command injection via Spark UI openwall.com · Mailing List http://www.openwall.com/lists/oss-security/2023/05/02/1
- Apache Mailing List lists.apache.org · CVE Record https://lists.apache.org/thread/p847l3kopoo5bjtmxrcwk21xp6tjxqlc
- packetstormsecurity.com/files/168309/Apache-Spark-Unauthenticated-Co... packetstormsecurity.com · CVE Record http://packetstormsecurity.com/files/168309/Apache-Spark-Unauthentica...
Recommended Actions
- Prioritize remediation. Validate affected assets and apply vendor fixes on an accelerated timeline.
- Check enrichment artifacts for scanner coverage and available PoCs before rolling remediation validation.
- Use the Pro API to automate enrichment, telemetry, and workflow delivery for VM, SOC, and CTI pipelines.
Known Exploited Vulnerability Sources
Catalogues that list this CVE as a known exploited vulnerability.
Per-source evidence links for KEV attestations are available through the KEVIntel Pro API.
Learn about Pro API access| Source | Added |
|---|---|
| CISA First | 2023-03-07 00:00 UTC |
| The Shadowserver | 2026-07-05 00:00 UTC |
Scanner Artifacts
Nuclei and Metasploit references linked to this CVE.
| Scanner | Reference | Detected |
|---|---|---|
| Nuclei | https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2022/CVE-2022-33891.yaml | Apr 25, 2025 |
| Metasploit | https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/http/apache_spark_rce_cve_2022_33891.rb | Apr 28, 2025 |
Virtual Patch
Compensating WAF rules to help reduce exposure to this CVE. Rule content and deployable vendor exports are available with KEVIntel Enterprise.
KEVIntel does not currently have a virtual patch for this CVE. When available, KEVIntel virtual patches ship as deployable ModSecurity, Cloudflare, and AWS WAF rules.
Enterprise feature. Virtual patch rule content and deployable vendor exports (ModSecurity, Cloudflare, AWS WAF) are available to KEVIntel Enterprise users.
CVSS Scores
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Exploitation Status
Exploited in the wild
Recorded 2023-03-07 00:00:00 UTC · CISA
Proof of concept available
Recorded 2022-07-20 05:15:28 UTC · GitHub
Weaknesses (CWE)
-
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
Scanner Integrations
| Scanner | Reference | Detected |
|---|---|---|
| Metasploit | https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/http/apache_spark_rce_cve_2022_33891.rb | Apr 28, 2025 |
| Nuclei | https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2022/CVE-2022-33891.yaml | Apr 25, 2025 |
Potential Proof of Concepts
These PoCs are unverified and could contain malware. Use at your own risk.
github · Created 2022-07-30 23:02:16 UTC · 26 stars
「💥」CVE-2022-33891 - Apache Spark Command Injection
nuclei · Created Unknown
Timeline
Key exploitation, disclosure, scanner coverage, and KEV attestation events for this CVE.
-
00:00 UTC 17 days ago00:00 UTC · 17 days ago
KEV confirmed by The Shadowserver
Exploitation attested by an external source
-
15:02 UTC about 1 year ago15:02 UTC · about 1 year ago
Metasploit module available
Exploit module available
-
00:00 UTC about 1 year ago00:00 UTC · about 1 year ago
Nuclei template available
Scanner coverage available
-
00:00 UTC over 3 years ago00:00 UTC · over 3 years ago
Added to CISA KEV
Listed in the CISA Known Exploited Vulnerabilities catalog
-
05:15 UTC about 4 years ago05:15 UTC · about 4 years ago
Public PoC available
Public proof-of-concept code published
-
00:00 UTC about 4 years ago00:00 UTC · about 4 years ago
CVE published
Vulnerability disclosed publicly
-
00:00 UTC about 4 years ago00:00 UTC · about 4 years ago
CVE ID reserved
Identifier reserved by the CNA
Automate This Intelligence with the Pro API
Confidence scoring, exploit status, sensor telemetry, PoCs, scanner integrations, mentions, and tags are available programmatically for VM, SOC, and CTI workflows.
Pro API Example
GET /api/v2/pro/kevs/CVE-2022-33891
{
"cve_id": "CVE-2022-33891",
"title": "Apache Spark shell command injection vulnerability via Spark UI",
"affected_vendor": "Apache Software Foundation",
"affected_product": "Apache Spark",
"affected_versions": [
{ "vendor": "...", "product": "...", "status": "affected", "display_label": "..." }
],
"confidence": "Confirmed",
"cvss_score": 8.8,
"epss_score": 0.92984,
"exploit_status": {
"exploited_in_the_wild": true,
"active_exploitation_observed": false
},
"sensor_telemetry": { "...": "Pro API fields" },
"proof_of_concepts": [ "..." ],
"scanner_integrations": [ "..." ]
}