Arbitrary file overwrite in setuptools for Python



Risk High
Patch available YES
Number of vulnerabilities 1
CVE-ID CVE-2025-47273
CWE-ID CWE-22
Exploitation vector Network
Public exploit N/A
Vulnerable software
setuptools
Other software / Other software solutions

Vendor Python Packaging Authority

Security Bulletin

This security bulletin contains one high risk vulnerability.

1) Path traversal

EUVDB-ID: #VU109840

Risk: High

CVSSv4.0: 6.1 [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 - Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Exploit availability: No

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.

Mitigation

Install updates from vendor's website.

Vulnerable software versions

setuptools: 24.0.3 - 78.1.0

CPE2.3 External links

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/issues/4946
https://github.com/pypa/setuptools/security/advisories/GHSA-5rjg-fvgr-3xxf


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.



###SIDEBAR###