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

CVE-2025-47273 · Severity: medium · CVSS 4 · Published 2025-05-17

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.

Technologies: setuptools (PyPI). Vendors: PyPI.

Quick answers

Is CVE-2025-47273 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2025-47273 being exploited in the wild.
How severe is CVE-2025-47273?
Medium severity, with a CVSS score of 4, published 17 May 2025.
Which products and versions are affected?
setuptools (PyPI) ECOSYSTEM:introduced=0,fixed=78.1.1, GIT:introduced=0,fixed=250a6d17978f9f6ac3ac887091f2d32886fbbb0b|ECOSYSTEM:introduced=0,fixed=78.1.1.
Is there a fix for CVE-2025-47273?
Yes. setuptools (PyPI): upgrade to 78.1.1 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
Am I affected by CVE-2025-47273?
Check whether you run setuptools (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • setuptools (PyPI): upgrade to 78.1.1 or later
    pip install "setuptools>=78.1.1"

Affected products

  • setuptools (PyPI) ECOSYSTEM:introduced=0,fixed=78.1.1, GIT:introduced=0,fixed=250a6d17978f9f6ac3ac887091f2d32886fbbb0b|ECOSYSTEM:introduced=0,fixed=78.1.1

Identifiers

  • CVE-2025-47273
  • GHSA-5rjg-fvgr-3xxf
  • PYSEC-2025-49

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.