{"id":"CVE-2024-6345","published":"2024-07-15T00:00:14Z","modified":"2025-11-04T16:15:51Z","title":"Remote Code Execution in pypa/setuptools","vendor":"pypa","product":"pypa/setuptools","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.8,"severity":"HIGH","version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01939,"percentile":0.80654,"provenance":"source"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"references":[{"url":"https://huntr.com/bounties/d6362117-ad57-4e83-951f-b8141c6e7ca5","tags":[]},{"url":"https://github.com/pypa/setuptools/commit/88807c7062788254f654ea8c03427adc859321f0","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2024/09/msg00018.html","tags":[]}],"priority":{"score":22.3,"factors":[{"name":"EPSS percentile","points":16.13},{"name":"CVSS severity","points":6.16}]},"vendorSlug":"pypa","affectedVersions":[{"vendor":"pypa","product":"pypa/setuptools","versions":[">= unspecified, < 70.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2024-07-15T13:33:16.586239Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"setuptools","vulnerableRanges":["<70.0.0"],"patched":["70.0.0"],"from":["GHSA-cx63-2mw6-8hw5","PYSEC-2026-1918"],"provenance":"source"}],"summary":{"text":"A code injection flaw in the package_index module of pypa/setuptools (versions up to 69.1.1) affects its download functions, which fetch packages from user-supplied URLs or package index servers. An attacker who can supply a URL to these functions over the network can execute arbitrary commands on the system, provided a user interaction occurs and the download functions are exposed to user-controlled input.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:42:11Z"},"euvd":{"id":"EUVD-2024-2330","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-pypa-setuptools-cve-2022-40897","parents":[{"from":"CVE-2022-40897","to":"CVE-2024-6345","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["setuptools/package_index.py"],"commits":["https://github.com/pypa/setuptools/commit/43a9c9bfa6aa626ec2a22540bea28d2ca77964be","https://github.com/pypa/setuptools/commit/88807c7062788254f654ea8c03427adc859321f0"],"basis":"rarely changed file"}]}],"children":[{"from":"CVE-2024-6345","to":"CVE-2025-47273","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["setuptools/package_index.py"],"commits":["https://github.com/pypa/setuptools/commit/88807c7062788254f654ea8c03427adc859321f0","https://github.com/pypa/setuptools/commit/250a6d17978f9f6ac3ac887091f2d32886fbbb0b"],"basis":"shared function","functions":["open_url"]}]}]}}