CVE-2025-47273
HighCVSS 8.8Exploitation Probability (EPSS)
High risk77th percentile - higher than 77% of all known CVEs
Summary
setuptools prior to version 78.1.1 contains a path traversal vulnerability in PackageIndex. An attacker could 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.
Risk Assessment
May allow overwriting or creating arbitrary files and consequently remote code execution in the application context.
Recommendation
Update setuptools to version 78.1.1 or later; avoid processing untrusted package sources.
Other vulnerabilities in setuptools
See all- CVE-2026-145817Medium
Setuptools through 84.2.1 contains an exclusion bypass vulnerability in build_py.exclude_data_files and discovery._Filter because exclude_package_data and find_packages patterns use byte-exact fnmatch without Unicode normalization. NFD file or package names on disk fail to match NFC patterns, so author-excluded data files or packages are silently included in published wheels or source distributions.
- GHSA-xmj3-9gf7-h52wLow
On Windows, attacker-controlled content in a wheel's .dist-info/namespace_packages.txt can cause setuptools' legacy wheel installation path to create an __init__.py outside the requested destination_eggdir. The attacker can influence the destination path but not the file contents.
- CVE-2026-59890Medium
In setuptools prior to version 83.0.0, MANIFEST.in directives (exclude, global-exclude, recursive-exclude, prune) were applied without Unicode normalization, allowing on macOS APFS or HFS+ an NFD file name to bypass an NFC exclusion rule and be included in a source distribution.
Original NVD description (English source)
setuptools 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.
Vulnerability data from NVD (NIST) · CISA KEV · EPSS

