CVE-2024-6345: setuptools vulnerable to Command Injection via package URL
A vulnerability in the packageindex module of pypa/setuptools versions up to 69.1.1 allows 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.
Published Jul 15, 2024 · Updated Nov 4, 2025
Affected packages
setuptools
- Ecosystem
- PyPI
- Affected
- < 70.0.0
- Fixed in
- 70.0.0
- Check
pip show setuptools
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
A vulnerability in the package_index module of pypa/setuptools versions up to 69.1.1 allows 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. The issue is fixed in version 70.0.
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-6345
- https://github.com/pypa/setuptools/commit/88807c7062788254f654ea8c03427adc859321f0
- https://huntr.com/bounties/d6362117-ad57-4e83-951f-b8141c6e7ca5
- https://github.com/pypa/setuptools/pull/4332
- https://lists.debian.org/debian-lts-announce/2024/09/msg00018.html
- https://github.com/advisories/GHSA-cx63-2mw6-8hw5
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More PyPI vulnerabilities
All PyPI entriesGHSA-xmj3-9gf7-h52w
setuptools: Windows path escape via namespace_packages.txt during legacy wheel installation Description
low1.0Oct 23, 2026CVE-2026-59890
setuptools: MANIFEST.in exclusion bypass in sdist via Unicode normalization collision (NFC/NFD) on macOS APFS/HFS+
medium6.1Jul 21, 2026CVE-2025-47273
setuptools has a path traversal vulnerability in PackageIndex.download that leads to Arbitrary File Write
high7.7May 19, 2025
