Apache · Spark · CWE-78 · published 2022-07-18
CVE-2022-33891Apache Spark Command Injection Vulnerability
This week Known exploited in the wild.
CVE-2022-33891 is actively exploited in the wild: CISA added it to the Known Exploited Vulnerabilities catalog on 2023-03-07. EPSS estimates a 92.9% chance of exploitation in the next 30 days, higher than 99% of all CVEs. This Spark vulnerability: CVSS 8.8 (v3.1), a successful attack gives total control of the component. CISA’s required action: Apply updates per vendor instructions. US federal agencies must remediate by 2023-03-28. Patch this week.
Jump to: Remediation Exploit intelAffected versionsDescription
Remediation#
CISA required action: Apply updates per vendor instructions. (federal due date 2023-03-28)
Patch events
App server & middlewareApache Spark
Command InjectionCVE-2022-33891
Why: Known exploited in the wild.
Exploit intelligence#
| Signal | Value | Source |
|---|---|---|
| Known exploited | Yes, added 2023-03-07 | CISA KEV |
| Ransomware use | Unknown | CISA KEV |
| EPSS (30-day exploitation probability) | 93% (100th pct) | FIRST EPSS v2026.06.15 |
| CVSS base score | 8.8 (v3.1)CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H | CNA / CISA ADP |
| SSVC exploitation | active | CISA Vulnrichment |
| SSVC automatable | No | CISA Vulnrichment |
| SSVC technical impact | total | CISA Vulnrichment |
Weakness: CWE-78: Improper Neutralization of Special Elements used in an OS Command
More from this vendor: all Apache vulnerabilities · recent KEV additions
Affected versions (from the CVE record)#
- Apache Software Foundation Apache Spark
3.0.3 and earlierthrough3.0.3(affected)3.1.1 to 3.1.2through3.1.2(affected)3.2.0 to 3.2.1through3.2.1(affected)
Description (from the CVE record)#
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.
Quoted from the CVE Program record.