CVE-2024-6345
Published: 15 July 2024
Summary
CVE-2024-6345 is a high-severity Code Injection (CWE-94) vulnerability. Its CVSS base score is 8.8 (High).
Operationally, ranked in the top 6.9% of CVEs by exploit likelihood; it is not currently listed in the CISA KEV catalog.
Deeper analysis
A vulnerability in the package_index module of pypa/setuptools versions up to 69.1.1 permits remote code execution through its package download functions. These functions accept URLs supplied by users or fetched from package index servers and are susceptible to code injection when handling attacker-controlled inputs, as classified under CWE-94. The flaw was addressed in version 70.0.
An unauthenticated remote attacker can supply a malicious package URL that triggers arbitrary command execution on the affected system when the download routines process the input. Successful exploitation yields full control over the target host, with the CVSS 8.8 vector reflecting network access, low attack complexity, and no required privileges or user interaction beyond triggering the download path.
The upstream fix is documented in commit 88807c7062788254f654ea8c03427adc859321f0, and Debian has issued an LTS advisory (2024/09/msg00018) addressing affected packages. Security teams should upgrade setuptools to 70.0 or later and review any custom code paths that expose package download functionality to untrusted URLs.
EPSS scores have remained near 0.1 with no material post-disclosure climb, and no confirmed in-the-wild exploitation has been reported.
EU & UK References
- 🇪🇺 ENISA EUVD: EUVD-2024-2330
Vulnerability details
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,…
more
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.
- CWE(s)
Related Threats
No named actor attribution yet. ATT&CK technique mapping in progress for this CVE.
Affected Assets
Mitigating Controls
Likely Mitigating Controls AI
Per-CVE control mapping for this CVE has not run yet; the list below is derived from the weakness types (CWEs) cited in the NVD entry.
Makes persistent code injection into loaded programs impossible when the executable image itself resides on hardware-protected read-only media.
Dynamically generated code can be produced and executed inside the isolated chamber, preventing host compromise from code-injection payloads.
Validates inputs used in dynamic code generation to block injected directives.
Directly prevents execution of attacker-supplied code written into data memory regions.