Skip to content
Emerging threatsHigh

CVE-2023-32007Spark Command Injection

Apache Spark UI vulnerable to Command Injection

Published May 2, 2023 · Updated Oct 28, 2026 · Also known as BIT-spark-2023-32007, GHSA-59hw-j9g6-mfg3, PYSEC-2023-72

Key Facts

Patch immediately
  • CVE-2023-32007 is a high-severity vulnerability (CVSS 8.7 v4) affecting Spark (Apache), org.apache.spark:spark-parent_2.12 (pypi), pyspark (pypi) and 1 more product.
  • It is not listed in any known-exploited vulnerabilities catalog. No public exploit code is known.
  • EPSS estimates a 76% probability of exploitation in the next 30 days.
  • Fixed versions are available, including Spark <=3.0.3, Spark 3.2.2, Spark 3.0.4.
  • Brandefense priority: patch immediately, because it is very likely to be exploited soon.

Scores

CVSS v4

8.7

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

EPSS (30-day exploit likelihood)

76%

Higher than 99.5% of all scored CVEs

Exploit maturity

None known

ATLAS score

33/100

Publication score, see How it works

Exploitation Verdict

KEV listed

Not listed

Federal due date

None

No federal due date

Ransomware use

Not reported

Attributed actors

None named

Exploit & Defence Guidance

Exploit maturity

None known

Public exploit code

0

Proof-of-concept links

In-the-wild evidence

0

Reports of active use

Description

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

Affected Products

7 affected entries in total
ProductAffected versionsFixed in
SparkApache>= 3.1.13.0.3
org.apache.spark:spark-parent_2.12pypi>= 3.1.13.2.2
pysparkpypi>= 3.1.13.2.2
seal-pysparksealSee advisory2.4.8+sp999

Patched Releases

Spark

<=3.0.3, 3.2.2, 3.0.4, 3.1.4

org.apache.spark:spark-parent_2.12

3.2.2

pyspark

2.4.8+sp999, 3.2.2

seal-pyspark

2.4.8+sp999

Timeline

  1. Publicly disclosed

    May 2, 2023

  2. Last updated

    Oct 28, 2026

Weakness Type

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

References

5 more references in the full CVE brief

FAQ

Common Questions.

Is CVE-2023-32007 On Your Attack Surface?

Brandefense matches it against the products discovered on your perimeter and opens a finding the day a CVE like this is listed.

Request A Demo

Figures as of Dec 4, 2026. Compiled by Brandefense technologies from public vulnerability catalogs; scoring as described in How it works.

To report an error, contact Brandefense.