# CVE-2024-6345: Remote Code Execution in pypa/setuptools

- Severity: High 8.8 (CVSS:3.0, scored by @huntr_ai) `CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.98%, higher than 81% of CVEs (2026-12-01)
- Published: 2024-07-15T00:00:14.545Z
- Modified: 2026-09-10T03:50:16.663Z
- Also known as: GHSA-cx63-2mw6-8hw5, BIT-SETUPTOOLS-2024-6345, PYSEC-2026-1918
- Weaknesses: CWE-94
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: @huntr_ai

## Description

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.

(As written by CVE List.)

## Affected

- pypa pypa/setuptools: from unspecified before 70.0
- python setuptools: from 69.1.1 before 70.0
- setuptools (PyPI): before 70.0.0
- setuptools (Bitnami): before 70.0.0

## Every score

- @huntr_ai: CVSS:3.0 8.8 High `CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- PyPA Advisory Database: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:4.0 `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- Bitnami Vulnerability Database: rating High

## References

- <https://huntr.com/bounties/d6362117-ad57-4e83-951f-b8141c6e7ca5> (web)
- <https://github.com/pypa/setuptools/commit/88807c7062788254f654ea8c03427adc859321f0> (web)
- <https://lists.debian.org/debian-lts-announce/2024/09/msg00018.html> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-6345> (advisory, web)
- <https://github.com/pypa/setuptools/pull/4332> (web)
- <https://github.com/pypa/setuptools> (package)
- <https://pypi.org/project/setuptools> (package)
- <https://github.com/advisories/GHSA-cx63-2mw6-8hw5> (advisory, web)

## Sources

- CVE List: [CVE-2024-6345](https://www.cve.org/CVERecord?id=CVE-2024-6345), CVE Terms of Use, modified 2025-11-04
- GitHub Advisory Database: [GHSA-cx63-2mw6-8hw5](https://github.com/advisories/GHSA-cx63-2mw6-8hw5), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2024-6345](https://nvd.nist.gov/vuln/detail/CVE-2024-6345), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-1918](https://osv.dev/vulnerability/PYSEC-2026-1918), CC-BY-4.0, modified 2026-07-07
- Bitnami Vulnerability Database: [BIT-SETUPTOOLS-2024-6345](https://osv.dev/vulnerability/BIT-SETUPTOOLS-2024-6345), Apache-2.0, modified 2026-07-07

---

Page: https://cve.day/CVE-2024-6345 · Whole record: https://cve.day/CVE-2024-6345.json · Rebuilt by cve.day 2026-11-25T22:58:42.921Z
