7.7High

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

pypa setuptools Published: (1 year ago)

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.

Weakness (CWE): CWE-22

Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.

Affected products and versions

VendorProductVersions
debian debian linux 11.0
pypa setuptools < 78.1.1
python setuptools < 78.1.1

References and patches

CPE matches (NVD) (2)

  • cpe:2.3:a:python:setuptools:*:*:*:*:*:*:*:* < 78.1.1
  • cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*