CVE-2022-33891
published high CVSS 3.1 · 8.8Apache Spark shell command injection vulnerability via Spark UI
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Apache Software Foundation | — | Apache Spark3.0.3 and earlier through 3.0.3 · 3.1.1 to 3.1.2 through 3.1.2 · 3.2.0 to 3.2.1 through 3.2.1 | Affected | Not stated | apache |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 8.8 / 10
- Severity
- high
- Provider
- CISA-ADP · adp
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Apache Software Foundation | Apache Spark | 3.0.3 and earlier through 3.0.3 (affected · custom)3.1.1 to 3.1.2 through 3.1.2 (affected · custom)3.2.0 to 3.2.1 through 3.2.1 (affected · custom) | apache · cna |
Weaknesses
1- CWE-78 CWE-78 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
References
4- http://packetstormsecurity.com/files/168309/Apache-Spark-Unauthenticated-Command-Injection.html
- [oss-security] 20230502 CVE-2023-32007: Apache Spark: Shell command injection via Spark UI http://www.openwall.com/lists/oss-security/2023/05/02/1
- https://lists.apache.org/thread/p847l3kopoo5bjtmxrcwk21xp6tjxqlc
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2022-33891
Provider assertions
3apache · cna
Apache Spark shell command injection vulnerability via Spark UI
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 05d15183ebbb1684c6b49d55189adac8c76ed49f40e2b57098efe6541263a1fe
- Ingested
- 23 Sep 2026, 08:00:57 UTC
- Source record
- Official CVE record