Skip to main content
CVE-2024-6345VulnerabilityPublished Updated

CVE-2024-6345: pypa/setuptools · Improper Control of Generation of Code

Affects pypa/setuptoolsSource CVE Database V5

0

Not known to be exploited · CVSS 8.8 High : upgrade to 70.0 soon.

Data as of 25 Oct 2026, 19:02 UTC

CVSS 3.0 base score
8.8High
How severe the flaw is on the 0–10 CVSS scale.
EPSS
1.9% chance of exploitation in 30 days – higher than 79% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 70.0
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 15 Jul 2024

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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 2026-10-25.

What to do

Upgrade setuptools to 70.0.

Affected software

ProductAffectedFixed in
PyPIsetuptoolspkg:pypi/setuptoolsOther threatsAffected
  • <70.0
Fixed in
  • 70.0

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

To mitigate this vulnerability, European organizations should immediately upgrade all instances of pypa/setuptools to version 70.0 or later, where the issue is fixed. Additionally, organizations should audit and restrict the sources of package URLs used in automated scripts, CI/CD pipelines, and manual installations to trusted repositories only. Implementing strict input validation and sanitization on any user-supplied URLs related to package downloads is critical to prevent injection attacks. Monitoring and logging package installation activities can help detect suspicious behavior early. Organizations should also consider isolating build and deployment environments to limit the impact of potential exploitation. Regularly updating all Python dependencies and educating developers about secure package management practices will further reduce risk. Finally, integrating security scanning tools that detect vulnerable dependencies can help maintain ongoing security hygiene.

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.

References

Community reviews

Loading reviews…