CVE-2025-47273
Setuptools Remote Code Execution via Path Traversal
Description
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.
INFO
Published Date :
May 17, 2025, 4:15 p.m.
Last Modified :
June 12, 2025, 4:29 p.m.
Source :
[email protected]
Remotely Exploitable :
Yes !
Impact Score :
5.9
Exploitability Score :
2.8
Public PoC/Exploit Available at Github
CVE-2025-47273 has a 3 public PoC/Exploit
available at Github.
Go to the Public Exploits
tab to see the list.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2025-47273
.
URL | Resource |
---|---|
https://github.com/pypa/setuptools/blob/6ead555c5fb29bc57fe6105b1bffc163f56fd558/setuptools/package_index.py#L810C1-L825C88 | Product |
https://github.com/pypa/setuptools/commit/250a6d17978f9f6ac3ac887091f2d32886fbbb0b | Patch |
https://github.com/pypa/setuptools/issues/4946 | Exploit Issue Tracking |
https://github.com/pypa/setuptools/security/advisories/GHSA-5rjg-fvgr-3xxf | Exploit Vendor Advisory |
https://lists.debian.org/debian-lts-announce/2025/05/msg00035.html | Mailing List |
https://github.com/pypa/setuptools/issues/4946 | Exploit Issue Tracking |
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
None
Dockerfile HTML Go JavaScript Python
None
Dockerfile Python
Game created for the Trophé NSI 2025 Terminale contest.
Python GLSL Batchfile Shell
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2025-47273
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2025-47273
vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
Initial Analysis by [email protected]
Jun. 12, 2025
Action Type Old Value New Value Added CVSS V3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H Added CPE Configuration OR *cpe:2.3:a:python:setuptools:*:*:*:*:*:*:*:* versions up to (excluding) 78.1.1 Added CPE Configuration OR *cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:* Added Reference Type GitHub, Inc.: https://github.com/pypa/setuptools/blob/6ead555c5fb29bc57fe6105b1bffc163f56fd558/setuptools/package_index.py#L810C1-L825C88 Types: Product Added Reference Type GitHub, Inc.: https://github.com/pypa/setuptools/commit/250a6d17978f9f6ac3ac887091f2d32886fbbb0b Types: Patch Added Reference Type CISA-ADP: https://github.com/pypa/setuptools/issues/4946 Types: Exploit, Issue Tracking Added Reference Type GitHub, Inc.: https://github.com/pypa/setuptools/issues/4946 Types: Exploit, Issue Tracking Added Reference Type GitHub, Inc.: https://github.com/pypa/setuptools/security/advisories/GHSA-5rjg-fvgr-3xxf Types: Exploit, Vendor Advisory Added Reference Type CVE: https://lists.debian.org/debian-lts-announce/2025/05/msg00035.html Types: Mailing List -
CVE Modified by af854a3a-2127-422b-91ae-364da2661108
May. 28, 2025
Action Type Old Value New Value Added Reference https://lists.debian.org/debian-lts-announce/2025/05/msg00035.html -
CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0
May. 19, 2025
Action Type Old Value New Value Added Reference https://github.com/pypa/setuptools/issues/4946 -
New CVE Received by [email protected]
May. 17, 2025
Action Type Old Value New Value Added Description 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. Added CVSS V4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:P/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X Added CWE CWE-22 Added Reference https://github.com/pypa/setuptools/blob/6ead555c5fb29bc57fe6105b1bffc163f56fd558/setuptools/package_index.py#L810C1-L825C88 Added Reference https://github.com/pypa/setuptools/commit/250a6d17978f9f6ac3ac887091f2d32886fbbb0b Added Reference https://github.com/pypa/setuptools/issues/4946 Added Reference https://github.com/pypa/setuptools/security/advisories/GHSA-5rjg-fvgr-3xxf
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2025-47273
is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2025-47273
weaknesses.