# CVE-2022-33891: Apache Spark shell command injection vulnerability via Spark UI

- Severity: High 8.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: yes. In CISA's catalogue since 2023-03-07. Apply updates per vendor instructions.
- Likelihood of exploitation in the next 30 days (EPSS): 92.9%, higher than 99% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2022-07-18T00:00:00.000Z
- Modified: 2026-09-08T08:48:19.497Z
- Also known as: GHSA-4x9r-j582-cgr8, BIT-SPARK-2022-33891, PYSEC-2022-236
- Weaknesses: CWE-78
- SSVC (CISA-ADP): exploitation active, automatable no, technical impact total
- Assigned by: 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.

(As written by CVE List.)

## Affected

- Apache Software Foundation Apache Spark: from 3.0.3 and earlier up to 3.0.3; from 3.1.1 to 3.1.2 up to 3.1.2; from 3.2.0 to 3.2.1 up to 3.2.1
- org.apache.spark:spark-parent_2.12 (Maven): up to 3.0.3; from 3.1.1 before 3.2.2
- pyspark (PyPI): before 3.1.3; from 3.2.0 before 3.2.2
- apache spark: up to 3.0.3; from 3.1.1 up to 3.1.2; from 3.2.0 up to 3.2.1
- spark (Bitnami): before 3.0.4; from 3.1.1 before 3.1.3; from 3.2.0 before 3.2.2

## Every score

- CISA-ADP: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H/E:H`
- GitHub: CVSS:4.0 High `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: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Bitnami Vulnerability Database: rating High

## References

- <http://packetstormsecurity.com/files/168309/Apache-Spark-Unauthenticated-Command-Injection.html> (exploit, advisory, third-party-advisory, vdb-entry, web)
- <https://packetstormsecurity.com/files/168309/Apache-Spark-Unauthenticated-Command-Injection.html> (exploit, web)
- <https://lists.apache.org/thread/p847l3kopoo5bjtmxrcwk21xp6tjxqlc> (advisory, kev, mailing-list, third-party-advisory, web)
- <http://www.openwall.com/lists/oss-security/2023/05/02/1> (advisory, mailing-list, third-party-advisory, web)
- <https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2022-33891> (advisory, government-resource, third-party-advisory, us-government-resource, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-33891> (advisory, kev, web)
- <https://github.com/apache/spark> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/pyspark/PYSEC-2022-236.yaml> (web)
- <https://www.openwall.com/lists/oss-security/2023/05/02/1> (web)
- <https://github.com/advisories/GHSA-4x9r-j582-cgr8> (advisory)

## Sources

- CVE List: [CVE-2022-33891](https://www.cve.org/CVERecord?id=CVE-2022-33891), CVE Terms of Use, modified 2025-10-21
- GitHub Advisory Database: [GHSA-4x9r-j582-cgr8](https://github.com/advisories/GHSA-4x9r-j582-cgr8), CC-BY-4.0, modified 2026-06-09
- NVD: [CVE-2022-33891](https://nvd.nist.gov/vuln/detail/CVE-2022-33891), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2022-236](https://osv.dev/vulnerability/PYSEC-2022-236), CC-BY-4.0, modified 2026-06-08
- Bitnami Vulnerability Database: [BIT-SPARK-2022-33891](https://osv.dev/vulnerability/BIT-SPARK-2022-33891), Apache-2.0, modified 2026-09-08
- CISA KEV: [CVE-2022-33891](https://www.cisa.gov/known-exploited-vulnerabilities-catalog?search_api_fulltext=CVE-2022-33891), CC0-1.0, modified 2023-03-07

---

Page: https://cve.day/CVE-2022-33891 · Whole record: https://cve.day/CVE-2022-33891.json · Rebuilt by cve.day 2026-11-25T22:58:13.004Z
