Authenticated shell command injection via Spark UI
Published Jul 18, 2022 · Updated Oct 21, 2025
Improper command neutralization in Apache Spark 3.0.3 and earlier allows remote authenticated users to execute shell commands via the Spark UI. HttpSecurityFilter accepts an arbitrary impersonated user name and passes attacker-controlled input into a Unix shell command during permission checking. ACLs and an authentication filter must be enabled, and commands run with the privileges of the Spark process.
Summary
What happened
Improper command neutralization in Apache Spark 3.0.3 and earlier allows remote authenticated users to execute shell commands via the Spark UI. HttpSecurityFilter accepts an arbitrary impersonated user name and passes attacker-controlled input into a Unix shell command during permission checking. ACLs and an authentication filter must be enabled, and commands run with the privileges of the Spark process.
The record
- CVE
- CVE-2022-33891
- Published
- Jul 18, 2022
- Updated
- Oct 21, 2025
- Vendor
- The Apache Software Foundation
- Product
- Apache Spark
- Classifications
- CWE-78, T1059.004
- Attack vector
- network
- Privileges
- authenticated
Timeline
How it unfolded
- Jul 18, 2022CVE publishedPublication date reported by the CVE source.
- Mar 7, 2023Exploitation reportedCISA KEV listing for CVE-2022-33891
- Oct 21, 2025Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=3.0.3 and earlier <=3.0.3
- Affected versionversion=3.1.1 to 3.1.2 <=3.1.2
- Affected versionversion=3.2.0 to 3.2.1 <=3.2.1
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
View daily counts
| Reporting day | Unique IPs |
|---|---|
| Sep 9, 2026 | Unavailable |
| Sep 10, 2026 | Unavailable |
| Sep 11, 2026 | Unavailable |
| Sep 12, 2026 | Unavailable |
| Sep 13, 2026 | Unavailable |
| Sep 14, 2026 | 1 |
| Sep 15, 2026 | Unavailable |
Weakness, pattern, technique
Public exploit references
- Apache Spark Unauthenticated Command Injectionfunctional · unverified
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Reported exploitation
- CISA KEV listing for CVE-2022-33891known exploited catalog
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo