Red Hat VEX
RHVEX-CVE-2025-47273
setuptools: Path Traversal Vulnerability in setuptools PackageIndex
Details
A path traversal vulnerability in the Python setuptools library allows attackers with limited system access to write files outside the intended temporary directory by manipulating package download URLs. This flaw bypasses basic filename sanitization and can lead to unauthorized overwrites of important system files, creating opportunities for further compromise. While it doesn't expose data or require user interaction, it poses a high integrity risk and is especially concerning in environments that rely on automated package handling or internal tooling built on setuptools.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Red Hat:enterprise_linux:6 | python-setuptools | All versions, no fix yet |
| Red Hat:enterprise_linux:8 | python38-setuptools | All versions, no fix yet |
| Red Hat:enterprise_linux:8 | python38-setuptools-wheel | All versions, no fix yet |
| Red Hat:enterprise_linux:8 | python39-setuptools | All versions, no fix yet |
| Red Hat:enterprise_linux:8 | python39-setuptools-wheel | All versions, no fix yet |
| Red Hat:enterprise_linux:8 | python3x-setuptools | All versions, no fix yet |
References
- https://access.redhat.com/security/cve/CVE-2025-47273
- https://bugzilla.redhat.com/show_bug.cgi?id=2366982
- https://www.cve.org/CVERecord?id=CVE-2025-47273
- https://nvd.nist.gov/vuln/detail/CVE-2025-47273
- https://github.com/pypa/setuptools/blob/6ead555c5fb29bc57fe6105b1bffc163f56fd558/setuptools/package_index.py#L810C1-L825C88
- https://github.com/pypa/setuptools/commit/250a6d17978f9f6ac3ac887091f2d32886fbbb0b
- https://github.com/pypa/setuptools/issues/4946
- https://github.com/pypa/setuptools/security/advisories/GHSA-5rjg-fvgr-3xxf