CVE-2022-33891Apache Spark Command Injection Vulnerability
CVSS score
8.8
High
CVSS 3.1 from NVD
Exploit probability (EPSS)
92.9%
92.9% chance of exploitation in the next 30 days, higher than 99.8% of all CVEs.
CISA KEV
Actively exploited
Added to KEV on 7 Mar 2023.
US federal deadline to fix: 28 Mar 2023.
Official 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.
Source: NVD · CNA: security@apache.org
How to fix it, step by step
Treat it as urgent
Attackers are already exploiting this flaw: CISA added it to its Known Exploited Vulnerabilities list on 7 Mar 2023.
US federal agencies must fix it by 28 Mar 2023. It's a sensible deadline for everyone else too.
CISA's full instruction
Apply updates per vendor instructions.
Check whether you're affected
Find every system running Apache Spark and compare its version with the affected versions.
Watch for an official fix
No fix or advisory is listed in the official record yet. Follow the vendor's security announcements; this page updates when one is published.
Check for signs of compromise
Updating closes the flaw but doesn't remove an attacker who got in earlier. Review affected systems for unknown accounts, unusual logins and configuration changes, and use any indicators of compromise the vendor or CISA publish.
Was this useful?
How it can be exploited
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- Low
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Values in red make the vulnerability easier to exploit or more damaging. CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Affected products
| Affected products | Versions |
|---|---|
| Apache Spark | ≤ 3.0.3 · ≥ 3.1.1, ≤ 3.1.2 · ≥ 3.2.0, ≤ 3.2.1 |
| Apache Apache Spark | ≥ 3.0.3 and earlier, ≤ 3.0.3 · ≥ 3.1.1 to 3.1.2, ≤ 3.1.2 · ≥ 3.2.0 to 3.2.1, ≤ 3.2.1 |
Weakness
- CWE-78 OS command injection
Timeline
- Published:
- Added to CISA KEV:
- Last modified:
Frequently asked questions
Is CVE-2022-33891 being exploited?
Yes. CISA added CVE-2022-33891 to its Known Exploited Vulnerabilities catalog on 7 Mar 2023, which means there is evidence of exploitation in the wild. Its EPSS score estimates a 92.9% probability of exploitation in the next 30 days.
What is the CVSS score of CVE-2022-33891?
CVE-2022-33891 has a CVSS 3.1 base score of 8.8 (high).
Which versions are affected?
Apache Spark (≤ 3.0.3; ≥ 3.1.1, ≤ 3.1.2; ≥ 3.2.0, ≤ 3.2.1), Apache Apache Spark (≥ 3.0.3 and earlier, ≤ 3.0.3; ≥ 3.1.1 to 3.1.2, ≤ 3.1.2; ≥ 3.2.0 to 3.2.1, ≤ 3.2.1)
Is there a patch for CVE-2022-33891?
The official record links to vendor advisories or patches; see “What to do” above.
References
- packetstormsecurity.com/files/168309/Apache-Spark-Unauthenticated-Command-Injection.html(Exploit, Third Party Advisory, VDB Entry)
- www.openwall.com/lists/oss-security/2023/05/02/1(Mailing List, Third Party Advisory)
- lists.apache.org/thread/p847l3kopoo5bjtmxrcwk21xp6tjxqlc(Mailing List, Third Party Advisory)
- www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2022-33891(Third Party Advisory, US Government Resource)
Data: NVD, CVE.org (cvelistV5), CISA KEV and FIRST EPSS. Summary written by RedCVE with AI assistance from the official data.