setuptools <78.1.1 Path Traversal via PackageIndex allows file write
CVE-2025-47273 Published on May 17, 2025

setuptools has a path traversal vulnerability in PackageIndex.download that leads to Arbitrary File Write
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.

Vendor Advisory NVD

Vulnerability Analysis

CVE-2025-47273 can be exploited with network access, and does not require authorization privileges or user interaction. This vulnerability is considered to have a low attack complexity. An automatable proof of concept (POC) exploit exists. The potential impact of an exploit of this vulnerability is considered to have no impact on confidentiality and integrity and availability.

Attack Vector:
NETWORK
Attack Complexity:
LOW
Privileges Required:
NONE
User Interaction:
NONE

Weakness Type

What is a Directory traversal Vulnerability?

The software uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the software does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.

CVE-2025-47273 has been classified to as a Directory traversal vulnerability or weakness.


Products Associated with CVE-2025-47273

You can be notified by email with stack.watch whenever vulnerabilities like CVE-2025-47273 are published in these products:

 
 
 

Affected Versions

pypa setuptools Version < 78.1.1 is affected by CVE-2025-47273

Exploit Probability

EPSS
1.49%
Percentile
71.55%

EPSS (Exploit Prediction Scoring System) scores estimate the probability that a vulnerability will be exploited in the wild within the next 30 days. The percentile shows you how this score compares to all other vulnerabilities.