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.

Created at: Jul 5, 2026Updated at: Jul 5, 2026

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.

Affected Package

Affecting pyspark package, versions<3.3.3

Also affects

---

How to Fix

Upgradepysparkto3.3.3or higher.

Mitigation and Workarounds

---

Vulnerable Functions

Functions linked to known vulnerabilities.

Vulnerable function data is available for Enterprise customers

Book a call with us to see Safety in action.

Safety

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