CVE-2025-47273

NameCVE-2025-47273
Descriptionsetuptools is a package that allows users to download, build, install, upgrade, and uninstall Python packages. A path traversal vulnerability in `PackageIndex` is present in setuptools prior to version 78.1.1. An attacker would be allowed to write files to arbitrary locations on the filesystem with the permissions of the process running the Python code, which could escalate to remote code execution depending on the context. Version 78.1.1 fixes the issue.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
ReferencesDLA-4183-1
Debian Bugs1105970

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+deb11u2fixed
bookworm66.1.1-1+deb12u1vulnerable
trixie78.1.0-1.2vulnerable
sid78.1.1-0.1fixed

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

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
setuptoolssourcebullseye52.0.0-4+deb11u2DLA-4183-1
setuptoolssource(unstable)78.1.1-0.11105970

Notes

[bookworm] - setuptools <no-dsa> (Minor issue)
https://github.com/pypa/setuptools/security/advisories/GHSA-5rjg-fvgr-3xxf
https://github.com/pypa/setuptools/issues/4946
Fixed by: https://github.com/pypa/setuptools/commit/250a6d17978f9f6ac3ac887091f2d32886fbbb0b (v78.1.1)

Search for package or bug name: Reporting problems