RCE in Pypa Pypa/setuptools

CVE-2024-6345

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.

Vulnerability class: RCE (Remote Code Execution)

EPSS: 0.019 (78.0th percentile) — read the EPSS interpretation.

CVSS v3 metric

CVSS v3 base score 8.8 (High). Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H.

Affected products

Weakness classification (CWE)

Public proof-of-concept exploits

References

Frequently asked questions

What is CVE-2024-6345?
CVE-2024-6345 is a high-severity vulnerability in Pypa Pypa/setuptools, classified under Code Injection. CVSS score: 8.8/10. Published 2024-07-15.
How severe is CVE-2024-6345?
High severity. CVSS v3 base score is 8.8 out of 10.
Is CVE-2024-6345 known to be exploited?
27 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.