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
-
spark.apache.org
/security.html
vendor-advisory, web, advisory
-
lists.apache.org
/thread/poxgnxhhnzz735kr1wos366l5vdbb0nv
vendor-advisory, web, mailing-list, discussion, article
-
cve.org
/CVERecord?id=CVE-2022-33891
related, web, third-party-advisory, advisory
-
openwall.com
/lists/oss-security/2023/05/02/1
web, mailing-list, discussion, article
-
nvd.nist.gov
/vuln/detail/CVE-2023-32007
advisory, web
-
github.com
/apache/spark
package
-
github.com
/pypa/advisory-database/tree/main/vulns/pyspark/PYSEC-2023-72.yaml
web
-
openwall.com
/lists/oss-security/2023/05/02/1
web
-
github.com
/advisories/GHSA-59hw-j9g6-mfg3
advisory
Sources
- CVE List CVE-2023-32007
- GitHub Advisory GHSA-59hw-j9g6-mfg3
- NVD CVE-2023-32007
- OSV BIT-spark-2023-32007
- OSV PYSEC-2023-72
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.