What’s Vulnerable › Vulnerabilities

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

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.

Affected products

How to fix

Upgrade to a fixed version: pypa setuptools 78.1.1; Pypi Setuptools 78.1.1. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2025-47273 or the next vulnerability affects your stack