Path Traversal in Pypa Setuptools
CVE-2025-47273
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 class: Path Traversal (Directory Traversal)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 8.8 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.016, 76.1th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Pypa Setuptools — versions < 78.1.1
- Python Setuptools
- Debian Linux — versions 11.0
Weakness classification (CWE)
Public exploits and proof-of-concept code
2 public repositories with exploit or proof-of-concept code for this CVE:
- ahmedreda38/CVE-2025-47273-PoC (1 star, last pushed 2026-03-16): CVE-2025-47273 is a high-severity path traversal vulnerability in the setuptools library ,specifically version 78.1.0 .
- AliElKhatteb/CVE-2025-47273-POC (1 star, last pushed 2026-03-15): CVE-2025-47273 — setuptools path traversal PoC
Also mentioned in 16 other repositories (ARPSyndicate/cve-scores, cheshie/code-analysis, CKA-codespace/cg-compare, …). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- https://github.com/pypa/setuptools/security/advisories/GHSA-5rjg-fvgr-3xxf (Exploit, Vendor Advisory)
- https://github.com/pypa/setuptools/issues/4946 (Exploit, Issue Tracking)
- https://github.com/pypa/setuptools/commit/250a6d17978f9f6ac3ac887091f2d32886fbbb0b (Patch)
- https://github.com/pypa/setuptools/blob/6ead555c5fb29bc57fe6105b1bffc163f56fd558/setuptools/package_index.py#L810C1-L825C88 (Product)
- lists.debian.org/debian-lts-announce/2025/05/msg00035.html (Mailing List)
This CVE has public exploit evidence. See the latest CVEs with public exploits.