CVE-2022-33891
HIGH 8.8CVSS 3.1known exploitedApache Spark UI can allow impersonation if ACLs enabled
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.
- Published
- 18 Jul 2022
- Last modified
- 17 Jun 2026
- Assigned by
- security@apache.org
- NVD status
- Analyzed
- Weakness
- CWE-78
- Also known as
- BIT-spark-2022-33891GHSA-4x9r-j582-cgr8PYSEC-2022-236
- Sources
- NVDJSONCISA KEVJSONOSV GHSA-4x9r-j582-cgr8JSONOSV PYSEC-2022-236JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:L/SI:L/SA:N/E:A | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H/E:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | apache | sparkcpe:2.3:a:apache:spark:*:*:*:*:*:*:*:* |
<= 3.0.3 | |
| NVD | apache | sparkcpe:2.3:a:apache:spark:*:*:*:*:*:*:*:* |
>= 3.1.1, <= 3.1.2 | |
| NVD | apache | sparkcpe:2.3:a:apache:spark:*:*:*:*:*:*:*:* |
>= 3.2.0, <= 3.2.1 | |
| OSV | Maven | org.apache.spark:spark-parent_2.12 | <= 3.0.3 | |
| OSV | Maven | org.apache.spark:spark-parent_2.12 | >= 3.1.1, < 3.2.2 | 3.2.2 |
| OSV | PyPI | pyspark | < 3.1.3 | 3.1.3 |
| OSV | PyPI | pyspark | >= 3.2.0, < 3.2.2 | 3.2.2 |
| OSV | PyPI | pyspark | < 3.1.3; >= 3.2.0, < 3.2.2 | 3.1.3, 3.2.2 |
References
- http://packetstormsecurity.com/files/168309/Apache-Spark-Unauthenticated-Command-Injection.html · Exploit, Third Party Advisory, VDB Entry, WEB
- http://www.openwall.com/lists/oss-security/2023/05/02/1 · Mailing List, Third Party Advisory, WEB
- https://lists.apache.org/thread/p847l3kopoo5bjtmxrcwk21xp6tjxqlc · Mailing List, Third Party Advisory, WEB
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2022-33891 · Third Party Advisory, US Government Resource, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-33891 · ADVISORY
- https://github.com/apache/spark · PACKAGE
- https://github.com/pypa/advisory-database/tree/main/vulns/pyspark/PYSEC-2022-236.yaml · WEB
- https://packetstormsecurity.com/files/168309/Apache-Spark-Unauthenticated-Command-Injection.html · WEB
- https://www.openwall.com/lists/oss-security/2023/05/02/1 · WEB
- https://github.com/advisories/GHSA-4x9r-j582-cgr8 · ADVISORY
History
- 25 Nov 2026 20:34 UTC · NVD: first stored (published 18 Jul 2022)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 18 Jul 2022)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 19 Jul 2022)
- 25 Nov 2026 20:10 UTC · CISA KEV: first stored (published 7 Mar 2023)
- 7 Mar 2023 00:00 UTC · Listed as known exploited