CVE-2025-47273

setuptools has a path traversal vulnerability in PackageIndex.download that leads to Arbitrary File Write

Published May 17, 2025 CVSS 4.0 · 7.7 High EPSS 1.6% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4183-1 setuptools security update
EUVD EUVD EUVD-2025-15591 setuptools has a path traversal vulnerability in PackageIndex.download that leads to Arbitrary File Write
Github GHSA Github GHSA GHSA-5rjg-fvgr-3xxf setuptools has a path traversal vulnerability in PackageIndex.download that leads to Arbitrary File Write
Ubuntu USN Ubuntu USN USN-7544-1 Setuptools vulnerability
History
Type Values Removed Values Added
Metrics epss

{'score': 0.001}

epss

{'score': 0.00139}

Type Values Removed Values Added
Metrics epss

{'score': 0.0012}

epss

{'score': 0.001}

Type Values Removed Values Added
CPEs cpe:/o:redhat:enterprise_linux:9
Type Values Removed Values Added
First Time appeared Redhat enterprise Linux
CPEs cpe:/o:redhat:enterprise_linux:10.0
Vendors & Products Redhat enterprise Linux
Type Values Removed Values Added
First Time appeared Redhat
Redhat rhdh
CPEs cpe:/a:redhat:rhdh:1.6::el9
Vendors & Products Redhat
Redhat rhdh
Type Values Removed Values Added
First Time appeared Debian
Debian debian Linux
Python
Python setuptools
CPEs cpe:2.3:a:python:setuptools:*:*:*:*:*:*:*:*
cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*
Vendors & Products Debian
Debian debian Linux
Python
Python setuptools
Metrics cvssV3_1

{'score': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N'}

cvssV3_1

{'score': 8.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}

Type Values Removed Values Added
References
Metrics threat_severity

None

cvssV3_1

{'score': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N'}

threat_severity

Moderate

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values 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.
Title setuptools has a path traversal vulnerability in PackageIndex.download that leads to Arbitrary File Write
Weaknesses CWE-22
References
Metrics cvssV4_0

{'score': 7.7, 'vector': 'CVSS:4.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'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
May 28, 2025, 3:03 PM
Reserved
May 5, 2025, 4:53 PM
Status
Analyzed
Published
May 17, 2025, 4:15 PM
Modified
Jun 17, 2026, 9:27 AM
Severity
Moderate
Public date
May 17, 2025, 3:46 PM