Vulnerability
CVE-2025-47273
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.
409 advisories report this vulnerability, across 14 ecosystems.
Advisories in Amazon Linux
-
ALAS2-2025-2876
Amazon Linux 2 2017.12 - ALAS2-2025-2876: important priority package update for python-setuptools
-
ALAS2-2025-2877
Amazon Linux 2 2017.12 - ALAS2-2025-2877: important priority package update for python2-setuptools
-
ALAS2023-2025-1003
Amazon Linux 2023 - ALAS2023-2025-1003: Important priority package update for python3.11-setuptools
-
ALAS2023-2025-1004
Amazon Linux 2023 - ALAS2023-2025-1004: Important priority package update for python3.12-setuptools
-
ALAS2023-2025-1005
Amazon Linux 2023 - ALAS2023-2025-1005: Important priority package update for python-setuptools
References
- https://github.com/pypa/setuptools/blob/6ead555c5fb29bc57fe6105b1bffc163f56fd558/setuptools/package_index.py#L810C1-L825C88
- https://github.com/pypa/setuptools/commit/250a6d17978f9f6ac3ac887091f2d32886fbbb0b
- https://github.com/pypa/setuptools/issues/4946
- https://github.com/pypa/setuptools/security/advisories/GHSA-5rjg-fvgr-3xxf
- https://lists.debian.org/debian-lts-announce/2025/05/msg00035.html