# CVE-2025-47273: setuptools has a path traversal vulnerability in PackageIndex.download that leads to Arbitrary File Write

- Severity: High 7.7 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.62%, higher than 76% of CVEs (2026-12-02)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2025-05-17T15:46:11.399Z
- Modified: 2026-09-10T03:50:24.253Z
- Also known as: GHSA-5rjg-fvgr-3xxf, BIT-SETUPTOOLS-2025-47273, PYSEC-2025-49
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- pypa setuptools: < 78.1.1
- setuptools (PyPI): before 78.1.1; before 250a6d17978f9f6ac3ac887091f2d32886fbbb0b
- python setuptools: before 78.1.1
- debian debian_linux: 11.0
- setuptools (Bitnami): before 78.1.1

## Every score

- GitHub_M: CVSS:4.0 7.7 High `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`
- GitHub: CVSS:4.0 High `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: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Bitnami Vulnerability Database: rating High

## References

- <https://github.com/pypa/setuptools/security/advisories/GHSA-5rjg-fvgr-3xxf> (exploit, advisory, evidence, vendor-advisory, web)
- <https://github.com/pypa/setuptools/issues/4946> (exploit, evidence, issue-tracking, report, web)
- <https://github.com/pypa/setuptools/commit/250a6d17978f9f6ac3ac887091f2d32886fbbb0b> (fix, patch, web)
- <https://github.com/pypa/setuptools/blob/6ead555c5fb29bc57fe6105b1bffc163f56fd558/setuptools/package_index.py#L810C1-L825C88> (product, web)
- <https://lists.debian.org/debian-lts-announce/2025/05/msg00035.html> (article, discussion, mailing-list, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-47273> (advisory, web)
- <https://github.com/pypa/advisory-database/tree/main/vulns/setuptools/PYSEC-2025-49.yaml> (web)
- <https://github.com/pypa/setuptools> (package)

## Sources

- CVE List: [CVE-2025-47273](https://www.cve.org/CVERecord?id=CVE-2025-47273), CVE Terms of Use, modified 2025-05-28
- GitHub Advisory Database: [GHSA-5rjg-fvgr-3xxf](https://github.com/advisories/GHSA-5rjg-fvgr-3xxf), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2025-47273](https://nvd.nist.gov/vuln/detail/CVE-2025-47273), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2025-49](https://osv.dev/vulnerability/PYSEC-2025-49), CC-BY-4.0, modified 2026-05-11
- Bitnami Vulnerability Database: [BIT-SETUPTOOLS-2025-47273](https://osv.dev/vulnerability/BIT-SETUPTOOLS-2025-47273), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2025-47273 · Whole record: https://cve.day/CVE-2025-47273.json · Rebuilt by cve.day 2026-11-25T22:58:58.170Z
