CVE-2024-6345: Remote Code Execution in pypa/setuptools
Vulnerability summary
CVE-2024-6345 is a high (CVSS 8.8) Improper Control of Generation of Code vulnerability in pypa pypa/setuptools. EPSS estimates a 1.94% chance of exploitation in the next 30 days, higher than 80.1% of scored vulnerabilities.
Not severe (CVSS 8.8, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 8 · Related 27Timeline
- 15-07-2024PublishedVulnerability first disclosed.
- 04-11-2025Last modifiedVulnerability information updated.
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.
CVSS metrics
10 scores · 9 sources · 3 versions- OSV · Red hatEcosystem advisory · calculated8.8HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- OSV · AlpineEcosystem advisory · calculated8.8HighCVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- OSV · UbuntuEcosystem advisory · calculated8.8HighCVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated8.8HighCVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- OSV · WolfiEcosystem advisory · calculated8.8HighCVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- OSV · ChainguardEcosystem advisory · calculated8.8HighCVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- NVDNIST8.8HighCVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
EPSS trend
Probability
1.94%
Chance of exploitation in the next 30 days
Percentile
80%
Versus all other CVEs
30-day change
No change 0.00 pp
From 1.94% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.
Redhat93 products
- Cython< 0:0.29.21-5.module+el8.4.0+9822+20bf1249
- Cython-debugsource< 0:0.29.21-5.module+el8.4.0+9822+20bf1249
- fence-agents< 0:4.10.0-43.el9_2.9 | < 0:4.10.0-20.el9_0.17 | < 0:4.10.0-62.el9_4.5 | < 0:4.2.1-112.el8_8.8 | < 0:4.2.1-65.el8_4.20 | < 0:4.2.1-89.el8_6.14
- fence-agents-aliyun< 0:4.10.0-43.el9_2.9 | < 0:4.10.0-20.el9_0.17 | < 0:4.10.0-62.el9_4.5 | < 0:4.2.1-112.el8_8.8 | < 0:4.2.1-65.el8_4.20 | < 0:4.2.1-89.el8_6.14
- fence-agents-aliyun-debuginfo< 0:4.2.1-112.el8_8.8 | < 0:4.2.1-65.el8_4.20 | < 0:4.2.1-89.el8_6.14
Chainguard46 products
- airflow< 2.9.3-r1
- airflow-bitnami-compat< 2.9.3-r1
- az< 2.62.0-r1
- az-iamguarded-compat< 2.62.0-r1
- checkov< 3.0.34-r1
Wolfi37 products
- airflow< 2.9.3-r1
- airflow-bitnami-compat< 2.9.3-r1
- az< 2.62.0-r1
- az-iamguarded-compat< 2.62.0-r1
- checkov< 3.0.34-r1
Opensuse16 products
- python-setuptools-wheel&distro=openSUSE Leap 15.6< 67.7.2-150400.3.16.1
- python-setuptools&distro=openSUSE Leap 15.5< 67.7.2-150400.3.16.1
- python-setuptools&distro=openSUSE Leap 15.6< 67.7.2-150400.3.16.1
- python-setuptools&distro=openSUSE Tumbleweed< 72.1.0-1.1
- python3-setuptools-test&distro=openSUSE Leap 15.5< 44.1.1-150400.9.9.1
Ubuntu3 products
- python-pip< 1.5.4-1ubuntu4+esm5 | < 8.1.1-2ubuntu0.6+esm8 | < 9.0.1-2.3~ubuntu1.18.04.8+esm4 | < 20.0.2-5ubuntu1.10+esm2
- python-setuptools< 3.3-1ubuntu2+esm2 | < 20.7.0-1ubuntu0.1~esm2 | < 39.0.1-2ubuntu0.1+esm1 | < 44.0.0-2ubuntu0.1+esm1 | < 44.1.1-1.2ubuntu0.22.04.1+esm1
- setuptools< 45.2.0-1ubuntu0.2 | < 59.6.0-1.2ubuntu0.22.04.2 | < 68.1.2-2ubuntu1.1
Alpine1 product
- py3-setuptools< 70.3.0-r0
Debian1 product
- setuptools< 66.1.1-1+deb12u1 | < 70.3.0-2
Mageia1 product
- python-setuptools< 65.5.0-3.1.mga9
Pypa1 product
- pypa/setuptools≥ unspecified, < 70.0
PyPI1 product
- setuptools< 70.0.0
10 vendors · 200 products · Showing 200 of 363
References
87 linksShow all 87 references
- github.com/pypa/setuptoolsPACKAGE
- pypi.org/project/setuptoolsPACKAGE