RCE in Apache Spark
CVE-2023-32007
** 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.
Vulnerability class: Command Injection (OS Command Injection)
EPSS: 0.760 (99.5th percentile) — read the EPSS interpretation.
CVSS v3 metric
CVSS v3 base score 8.8 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.
Affected products
- Apache Spark
- Apache Software Foundation Spark — versions 3.1.1
Weakness classification (CWE)
Public proof-of-concept exploits
References
- security@apache.org (related, Third Party Advisory)
- security@apache.org (vendor-advisory, Vendor Advisory)
- security@apache.org (vendor-advisory, Mailing List)
- security@apache.org (Mailing List)
Frequently asked questions
- What is CVE-2023-32007?
- CVE-2023-32007 is a high-severity vulnerability in Apache Spark, classified under Command Injection. CVSS score: 8.8/10. Published 2023-05-02.
- How severe is CVE-2023-32007?
- High severity. CVSS v3 base score is 8.8 out of 10.
- Is CVE-2023-32007 known to be exploited?
- 27 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.