CVE-2024-6345: Snapcraft · setuptools vulnerable to Command Injection via package URL
Affects snapcraftSource GCVE Database
Not known to be exploited · CVSS 8.8 High : upgrade to 8.2.10 or 8.0.1 soon.
Data as of 4 Dec 2026, 18:44 UTC
- EPSS
- 1.9% chance of exploitation in 30 days – higher than 81% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 8.2.10, 8.0.1, 70.0.0
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 15 Jul 2024
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 4 Dec 2026.
What to do
Upgrade snapcraft to 8.2.10 or 8.0.1; setuptools to 70.0.0.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Homebrewsnapcraftpkg:brew/snapcraftOther threats | Affected
| Fixed in
|
PyPIsetuptoolspkg:pypi/setuptoolsOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Apply the official fix by upgrading Snapcraft to version 8.0.1 or later, or 8.2.10 or later, which include the patched setuptools 70.0. No other mitigation is required as the vulnerability is fully resolved in these versions.
Description
CVE-2024-6345 is a high-severity vulnerability in the package_index module of pypa/setuptools up to version 69.1.1, allowing remote code execution via command injection through package URLs. This flaw affects Snapcraft versions >=7.3.1_1 <8.0.1 and >=8.0.3 <8.2.10. The vulnerability is fixed in Snapcraft versions 8.0.1 and 8.2.10.
References
- nvd.nist.gov/vuln/detail/CVE-2024-6345 (opens in a new tab)
- github.com/pypa/setuptools/pull/4332 (opens in a new tab)
- github.com/pypa/setuptools/commit/88807c7062788254f654ea8c03427adc859321f0 (opens in a new tab)
- github.com/pypa/setuptools (opens in a new tab)
- huntr.com/bounties/d6362117-ad57-4e83-951f-b8141c6e7ca5 (opens in a new tab)
- lists.debian.org/debian-lts-announce/2024/09/msg00018.html (opens in a new tab)