Skip to content
Fencer Vulns
high 8.8

CVE-2023-32007 in the critical feed json

Apache Spark: Shell command injection via Spark UI

published 2023-05-02 3 y ago modified 2026-09-08 2 mo ago also BIT-spark-2023-32007 , EUVD-2023-0220 , GHSA-59hw-j9g6-mfg3 , PYSEC-2023-72

cvss
8.8
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
75.8%
EPSS 75.8% chance of exploitation in 30 days, percentile 99.5%
public exploits
0
none known

Summary

** 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.

Patch / fix

  • maven org.apache.spark:spark-parent_2.12 3.2.2
  • pypi pyspark 3.2.2
  • bitnami spark 3.0.4, 3.1.4, 3.2.2
  • Apache Software Foundation Apache Spark 3.2.2
  • apache spark 3.2.2

CISA SSVC

Exploitation
none
Automatable
no
Technical impact
total
Assessed
2 y ago

Exploit prediction

75.79% chance of exploitation in the next 30 days, higher than 99.5% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
CISA ADP 3.1 8.8 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
GitHub 3.1 8.8 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD 3.1 8.8 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CNA 3.1 8.8 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
OSV 3.1 8.8 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected packages

ecosystem package affected fixed in
maven org.apache.spark:spark-parent_2.12
>=3.1.1, <3.2.2
3.2.2
pypi pyspark
>=3.1.1, <3.2.2
<3.2.2
3.2.2
bitnami spark
<3.0.4
>=3.1.1, <3.1.4
>=3.2.0, <3.2.2
3.0.4
3.1.4
3.2.2

Affected products

  • Apache Software Foundation Apache Spark
  • apache spark

Classification

Weakness
  • CWE-77 Improper Neutralization of Special Elements used in a Command

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.