CVE-2022-33891 Details
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.
A command injection vulnerability has been identified in the Apache Spark UI, specifically in versions 3.0.3 and earlier, 3.1.1 to 3.1.2, and 3.2.0 to 3.2.1. This vulnerability arises when Access Control Lists (ACLs) are enabled through the configuration option 'spark.acls.enable'. In such cases, the 'HttpSecurityFilter' can be exploited by impersonating a user and injecting commands that are executed in the context of the user under which Spark is running. This issue was disclosed as CVE-2022-33891 and is being tracked as SPARK-38992.
Users are advised to upgrade to Apache Spark versions 3.1.3, 3.2.2, or 3.3.0 and later.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Feb 4, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2022-33891 | CISA-ADP | Third Party AdvisoryUS Government Resource |
| http://packetstormsecurity.com/files/168309/Apache-Spark-Unauthenticated-Command-Injection.html | CVE | ExploitThird Party AdvisoryVDB Entry |
| https://lists.apache.org/thread/p847l3kopoo5bjtmxrcwk21xp6tjxqlc | CVE | Mailing ListThird Party Advisory |
| http://www.openwall.com/lists/oss-security/2023/05/02/1 | CVE | Mailing ListThird Party Advisory |
| http://packetstormsecurity.com/files/168309/Apache-Spark-Unauthenticated-Command-Injection.html | [email protected] | ExploitThird Party AdvisoryVDB Entry |
| https://lists.apache.org/thread/p847l3kopoo5bjtmxrcwk21xp6tjxqlc | [email protected] | Mailing ListThird Party Advisory |
| http://www.openwall.com/lists/oss-security/2023/05/02/1 | [email protected] | Mailing ListThird Party Advisory |
This CVE is in CISA's Known Exploited Vulnerabilities Catalog
Reference CISA's BOD 22-01 and Known Exploited Vulnerabilities Catalog for further guidance and requirements.
| Vulnerability Name | Date Added | Due Date | Required Action |
|---|---|---|---|
| Apache Spark Command Injection Vulnerability | Mar 7, 2023 | Mar 28, 2023 | Apply updates per vendor instructions. |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | [email protected] |
| CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| apache spark | <= 3.0.3 >= 3.1.1, <= 3.1.2 >= 3.2.0, <= 3.2.1 |
CPE
Remediation
| |
Change History
19 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Oct 23, 2025 | Modified Analysis | [email protected] |
| Oct 22, 2025 | CVE Modified | CISA-ADP |
| Oct 21, 2025 | CVE Modified | CISA-ADP |
| Oct 21, 2025 | CVE Modified | CISA-ADP |
| Jul 30, 2025 | Modified Analysis | [email protected] |
| Jul 30, 2025 | CVE Modified | CISA-ADP |
| Mar 13, 2025 | Modified Analysis | [email protected] |
| Feb 4, 2025 | CVE Modified | CISA-ADP |
| Nov 21, 2024 | CVE Modified | CVE |
| May 14, 2024 | CVE Modified | [email protected] |
| Aug 2, 2023 | Modified Analysis | [email protected] |
| Jul 25, 2023 | CVE Modified | [email protected] |
| Jul 21, 2023 | Modified Analysis | [email protected] |
| May 2, 2023 | CVE Modified | [email protected] |
| Oct 27, 2022 | Modified Analysis | [email protected] |
| Sep 8, 2022 | CVE Modified | [email protected] |
| Jul 25, 2022 | Initial Analysis | [email protected] |