PyPI: setuptools

CVE-2024-6345

Safety vulnerability ID: SFTY-20240715-90553

Safety legacy ID: pyup.io-72236

Affected versions of Setuptools allow for remote code execution via its download functions. These functions, which are used to download packages from URLs provided by users or retrieved from package index servers, are susceptible to code injection. If these functions are exposed to user-controlled inputs, such as package URLs, they can execute arbitrary commands on the system.

Created at: May 22, 2026Updated at: May 22, 2026

Overview

setuptools vulnerable to Command Injection via package URL

Advisory

Affected versions of Setuptools allow for remote code execution via its download functions. These functions, which are used to download packages from URLs provided by users or retrieved from package index servers, are susceptible to code injection. If these functions are exposed to user-controlled inputs, such as package URLs, they can execute arbitrary commands on the system.

Affected Package

Affecting setuptools package, versions
<70.0.0

Also affects

---

How to Fix

Upgrade
setuptools
to
70.0.0
or 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