# CVE-2023-32007: Apache Spark: Shell command injection via Spark UI

- Priority: **Routine**
- Reason: Not severe (CVSS 8.8, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2023-05-02 · Modified: 2025-02-13
- Aliases: GHSA-59hw-j9g6-mfg3, BIT-spark-2023-32007, PYSEC-2023-72
- Record: https://cvemate.com/vulnerability/CVE-2023-32007 · JSON: https://cvemate.com/vulnerability/CVE-2023-32007/json

## Description

```text
** UNSUPPORTED WHEN ASSIGNED ** 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 issue was disclosed earlier as CVE-2022-33891, but incorrectly claimed version 3.1.3 (which has since gone EOL) would not be affected.

NOTE: This vulnerability only affects products that are no longer supported by the maintainer.

Users are recommended to upgrade to a supported version of Apache Spark, such as version 3.4.0.
```

## Signals

- CVSS: 8.8 high (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- EPSS: 75.955%, percentile 99.533%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- apache software foundation apache spark: ≥ 3.1.1, \< 3.2.2
- apache spark: ≤ 3.0.3 \| ≥ 3.1.1, ≤ 3.1.3 \| ≥ 3.2.0, ≤ 3.2.1
- org.apache.spark spark-parent\_2.12 (Maven): ≥ 3.1.1, \< 3.2.2
- PyPI pyspark (PyPI): \< 3.2.2 \| ≥ 3.1.1, \< 3.2.2

## References

- <https://www.cve.org/CVERecord?id=CVE-2022-33891>
- <https://spark.apache.org/security.html>
- <https://lists.apache.org/thread/poxgnxhhnzz735kr1wos366l5vdbb0nv>
- <http://www.openwall.com/lists/oss-security/2023/05/02/1>
- <https://nvd.nist.gov/vuln/detail/CVE-2023-32007>
- <https://github.com/apache/spark>
- <https://github.com/pypa/advisory-database/tree/main/vulns/pyspark/PYSEC-2023-72.yaml>
- <https://www.openwall.com/lists/oss-security/2023/05/02/1>
- <https://github.com/advisories/GHSA-59hw-j9g6-mfg3>

---

Data as of 2026-12-05T03:31:41.419Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
