PyPI: pyspark
CVE-2023-22946
Safety vulnerability ID: SFTY-20230417-69236
Safety legacy ID: pyup.io-62892
Affected versions of the Apache Spark package are vulnerable to Improper Input Validation due to insufficient restrictions on classpath configurations. The vulnerability exists because applications can specify arbitrary configuration-related classes on the classpath, circumventing the intended privilege limitations imposed by the 'proxy-user' setting. An attacker can exploit this by submitting a malicious application that includes custom classpath entries, allowing execution of code with the privileges of the submitting user rather than the restricted proxy-user, potentially compromising system security.
Overview
Apache Spark vulnerable to Improper Privilege Management
Advisory
Affected versions of the Apache Spark package are vulnerable to Improper Input Validation due to insufficient restrictions on classpath configurations. The vulnerability exists because applications can specify arbitrary configuration-related classes on the classpath, circumventing the intended privilege limitations imposed by the 'proxy-user' setting. An attacker can exploit this by submitting a malicious application that includes custom classpath entries, allowing execution of code with the privileges of the submitting user rather than the restricted proxy-user, potentially compromising system security.
How to Fix
Mitigation and Workarounds
---
Vulnerable Functions
Functions linked to known vulnerabilities.
References
- https://getsafety.com/vulnerabilities/SFTY-20230417-69236/CVE-2023-22946
- https://nvd.nist.gov/vuln/detail/CVE-2023-22946
- https://lists.apache.org/thread/yllfl25xh5tbotjmg93zrq4bzwhqc0gv
- https://github.com/apache/spark/pull/39474
- https://github.com/apache/spark/pull/41428
- https://github.com/apache/spark/commit/909da96e1471886a01a9e1def93630c4fd40e74a
- https://github.com/degant/spark/commit/bfba57724d2520e0fcaa7990f7257c21d11cd75a
- https://issues.apache.org/jira/browse/SPARK-41958
- https://github.com/pypa/advisory-database/tree/main/vulns/pyspark/PYSEC-2023-44.yaml
- https://github.com/advisories/GHSA-329j-jfvr-rhr6
Verified by Safety
Our Cybersecurity Intelligence Team reviewed this vulnerability. We combine public data with our own research to find issues not yet reported to public sources.
Learn more
