CVE-2025-47273
HIGH 7.7CVSS 4.0setuptools 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.
- Published
- 17 May 2025
- Last modified
- 10 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-22
- Also known as
- BIT-setuptools-2025-47273GHSA-5rjg-fvgr-3xxfPYSEC-2025-49
- Sources
- NVDJSONOSV GHSA-5rjg-fvgr-3xxfJSONOSV PYSEC-2025-49JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 4.0 | HIGH 7.7 | 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/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 |
| OSV | GitHub | CVSS 4.0 | 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 | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| OSV | PyPA | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | python | setuptoolscpe:2.3:a:python:setuptools:*:*:*:*:*:*:*:* |
< 78.1.1 | 78.1.1 |
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:* |
= 11.0 | |
| OSV | PyPI | setuptools | < 78.1.1 | 78.1.1 |
References
- https://github.com/pypa/setuptools/blob/6ead555c5fb29bc57fe6105b1bffc163f56fd558/setuptools/package_index.py#L810C1-L825C88 · Product, WEB
- https://github.com/pypa/setuptools/commit/250a6d17978f9f6ac3ac887091f2d32886fbbb0b · Patch, WEB, FIX
- https://github.com/pypa/setuptools/issues/4946 · Exploit, Issue Tracking, WEB, REPORT
- https://github.com/pypa/setuptools/security/advisories/GHSA-5rjg-fvgr-3xxf · Exploit, Vendor Advisory, WEB, EVIDENCE
- https://lists.debian.org/debian-lts-announce/2025/05/msg00035.html · Mailing List, WEB, ARTICLE
- https://nvd.nist.gov/vuln/detail/CVE-2025-47273 · ADVISORY
- https://github.com/pypa/advisory-database/tree/main/vulns/setuptools/PYSEC-2025-49.yaml · WEB
- https://github.com/pypa/setuptools · PACKAGE
History
- 25 Nov 2026 20:58 UTC · NVD: first stored (published 17 May 2025)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 17 May 2025)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 19 May 2025)