{"id":"CVE-2025-47273","published":"2025-05-17T15:46:11Z","modified":"2025-05-28T15:03:15Z","title":"setuptools has a path traversal vulnerability in PackageIndex.download that leads to Arbitrary File Write","vendor":"pypa","product":"setuptools","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.7,"severity":"HIGH","version":"4.0","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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0162,"percentile":0.76681,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/pypa/setuptools/security/advisories/GHSA-5rjg-fvgr-3xxf","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/pypa/setuptools/issues/4946","tags":["x_refsource_MISC"]},{"url":"https://github.com/pypa/setuptools/commit/250a6d17978f9f6ac3ac887091f2d32886fbbb0b","tags":["x_refsource_MISC"]},{"url":"https://github.com/pypa/setuptools/blob/6ead555c5fb29bc57fe6105b1bffc163f56fd558/setuptools/package_index.py#L810C1-L825C88","tags":["x_refsource_MISC"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/05/msg00035.html","tags":[]}],"priority":{"score":25.7,"factors":[{"name":"EPSS percentile","points":15.34},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":5.39}]},"exploitSources":{"pocGithub":{"count":2,"skipped":0,"earliest":"2026-03-15","earliestUrl":"https://github.com/AliElKhatteb/CVE-2025-47273-POC","repos":[{"name":"AliElKhatteb/CVE-2025-47273-POC","url":"https://github.com/AliElKhatteb/CVE-2025-47273-POC","stars":1,"created":"2026-03-15"},{"name":"ahmedreda38/CVE-2025-47273-PoC","url":"https://github.com/ahmedreda38/CVE-2025-47273-PoC","stars":1,"created":"2026-03-15"}]},"first":{"date":"2026-03-15","source":"PoC-in-GitHub","url":"https://github.com/AliElKhatteb/CVE-2025-47273-POC"},"provenance":"source"},"vendorSlug":"pypa","affectedVersions":[{"vendor":"pypa","product":"setuptools","versions":["< 78.1.1"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2025-05-19T14:45:34.580341Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"setuptools","vulnerableRanges":["<78.1.1"],"patched":["78.1.1"],"from":["GHSA-5rjg-fvgr-3xxf","PYSEC-2025-49"],"provenance":"source"}],"summary":{"text":"A path traversal flaw in the PackageIndex.download component of setuptools, a Python package used to download, build, install, upgrade and uninstall packages, affects versions prior to 78.1.1. An attacker with network access and no authentication or user interaction can 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.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-21T07:23:23Z"},"euvd":{"id":"EUVD-2025-15591","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-pypa-setuptools-cve-2022-40897","parents":[{"from":"CVE-2022-40897","to":"CVE-2025-47273","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["setuptools/package_index.py"],"commits":["https://github.com/pypa/setuptools/commit/43a9c9bfa6aa626ec2a22540bea28d2ca77964be","https://github.com/pypa/setuptools/commit/250a6d17978f9f6ac3ac887091f2d32886fbbb0b"],"basis":"rarely changed file"}]},{"from":"CVE-2024-6345","to":"CVE-2025-47273","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["setuptools/package_index.py"],"commits":["https://github.com/pypa/setuptools/commit/88807c7062788254f654ea8c03427adc859321f0","https://github.com/pypa/setuptools/commit/250a6d17978f9f6ac3ac887091f2d32886fbbb0b"],"basis":"shared function","functions":["open_url"]}]}]}}