CVE-2024-6345

NameCVE-2024-6345
DescriptionA 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.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
ReferencesDLA-3876-1

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
setuptools (PTS)bullseye52.0.0-4vulnerable
bullseye (security)52.0.0-4+deb11u1fixed
bookworm66.1.1-1vulnerable
trixie74.1.2-2fixed
sid75.2.0-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
setuptoolssourcebullseye52.0.0-4+deb11u1DLA-3876-1
setuptoolssource(unstable)70.3.0-2

Notes

[bookworm] - setuptools <no-dsa> (Minor issue)
https://huntr.com/bounties/d6362117-ad57-4e83-951f-b8141c6e7ca5
Fixed by merge: https://github.com/pypa/setuptools/commit/88807c7062788254f654ea8c03427adc859321f0 (v70.0.0)

Search for package or bug name: Reporting problems