Path traversal in setuptools - CVE-2025-47273

 

Path traversal in setuptools - CVE-2025-47273

Published: May 27, 2025


Vulnerability identifier: #VU109840
CSH Severity: High
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/U:Amber
CVE-ID: CVE-2025-47273
CWE-ID: CWE-22
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: Python Packaging Authority
Affected software:
setuptools

Detailed vulnerability description

The vulnerability allows a remote attacker to compromise the affected system.

The vulnerability exists due to input validation error when processing directory traversal sequences in package_index.py. A remote attacker can trick the victim into installing a specially crafted script and overwrite arbitrary files on the system, leading to code execution.


How to mitigate CVE-2025-47273

Install updates from vendor's website.

Sources