cve.bz

CVE-2025-47273 Path traversal

7.7 highExploit referenceEPSS 1.6%Fix available

High (7.7). EPSS 1.6% estimated probability of exploitation activity in the next 30 days. Fixed in setuptools 78.1.1.

On this page
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.

Severity

CVSS 4.0

7.7 high
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

CVSS 3.1

8.8 high
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS
1.6% (unchanged from 1.6% a week ago; 1.6% 30 days ago) estimated probability of exploitation activity in the next 30 days; 77th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: yes · Technical impact: partial, assessed 2025-05-19. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-22 Improper Limitation of a Pathname to a Restricted Directory (Path traversal)
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2025-47273 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-47273?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-47273?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-47273 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
python:setuptoolsbefore 78.1.1
debian:debian_linux11.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-5rjg-fvgr-3xxfPyPIsetuptools<78.1.178.1.1
PYSEC-2025-49PyPIsetuptools<78.1.178.1.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11setuptools52.0.0-4+deb11u2DLA-4183-1
Debian12setuptools66.1.1-1+deb12u2DEBIAN-CVE-2025-47273
Debian13, 14setuptools78.1.1-0.1DEBIAN-CVE-2025-47273
Ubuntu20.04:LTSsetuptools45.2.0-1ubuntu0.3UBUNTU-CVE-2025-47273 USN-7544-1
Ubuntu22.04:LTSsetuptools59.6.0-1.2ubuntu0.22.04.3UBUNTU-CVE-2025-47273 USN-7544-1
Ubuntu24.04:LTSsetuptools68.1.2-2ubuntu1.2UBUNTU-CVE-2025-47273 USN-7544-1
UbuntuPro:14.04:LTSpython-pipno fix listedUBUNTU-CVE-2025-47273
UbuntuPro:14.04:LTSpython-setuptools3.3-1ubuntu2+esm3UBUNTU-CVE-2025-47273 USN-7544-1
UbuntuPro:16.04:LTSpython-pip8.1.1-2ubuntu0.6+esm12UBUNTU-CVE-2025-47273
UbuntuPro:16.04:LTSpython-setuptools20.7.0-1ubuntu0.1~esm3UBUNTU-CVE-2025-47273 USN-7544-1
UbuntuPro:18.04:LTSpython-pip9.0.1-2.3~ubuntu1.18.04.8+esm8UBUNTU-CVE-2025-47273
UbuntuPro:18.04:LTSpython-setuptools39.0.1-2ubuntu0.1+esm2UBUNTU-CVE-2025-47273 USN-7544-1
UbuntuPro:20.04:LTSpython-setuptools44.0.0-2ubuntu0.1+esm2USN-7544-1
UbuntuPro:22.04:LTSpython-setuptools44.1.1-1.2ubuntu0.22.04.1+esm2UBUNTU-CVE-2025-47273 USN-7544-1
Red Hatansible_automation_platform:2.5::el8automation-controller, automation-controller-ui, automation-controller-cli and 2 more0:4.6.19-1.el8apRHSA-2025:14686
Red Hatansible_automation_platform:2.5::el8, ansible_automation_platform_developer:2.5::el8python3.11-django0:4.2.23-1.el8apRHSA-2025:14686
Red Hatansible_automation_platform:2.5::el9automation-controller, automation-controller-ui, automation-controller-cli and 2 more0:4.6.19-1.el9apRHSA-2025:14686
Red Hatansible_automation_platform:2.5::el9, ansible_automation_platform_developer:2.5::el9python3.11-django0:4.2.23-1.el9apRHSA-2025:14686
Red Hatansible_automation_platform_developer:2.5::el8automation-controller, automation-controller-cli0:4.6.19-1.el8apRHSA-2025:14686
Red Hatansible_automation_platform_developer:2.5::el9automation-controller, automation-controller-cli0:4.6.19-1.el9apRHSA-2025:14686
Red Hatenterprise_linux:8::appstreamPyYAML, python39-pyyaml, PyYAML-debugsource and 1 more0:5.4.1-1.module+el8.9.0+19644+d68f775dRHSA-2025:14900
Red Hatenterprise_linux:8::appstreammod_wsgi, python39-mod_wsgi0:4.7.1-7.module+el8.10.0+23075+0aa18782.1RHSA-2025:14900
Red Hatenterprise_linux:8::appstreamnumpy, python39-numpy, numpy-debugsource and 3 more0:1.19.4-3.module+el8.9.0+19644+d68f775dRHSA-2025:14900
Red Hatenterprise_linux:8::appstreampython-PyMySQL, python39-PyMySQL0:0.10.1-2.module+el8.9.0+19644+d68f775dRHSA-2025:14900
Red Hatenterprise_linux:8::appstreampython-cffi, python39-cffi, python-cffi-debugsource and 1 more0:1.14.3-2.module+el8.9.0+19644+d68f775dRHSA-2025:14900
Red Hatenterprise_linux:8::appstreampython-chardet, python39-chardet0:3.0.4-19.module+el8.9.0+19644+d68f775dRHSA-2025:14900
129 more for Red Hat in the JSON and on Red Hat's page.
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-LTSS, Linux Enterprise Server 15 SP3-LTSS and 1 morepython-setuptools, python-setuptools-test, python-setuptools-wheel40.5.0-150100.6.12.1SUSE-SU-2025:01715-1
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-LTSS, Linux Enterprise Server 15 SP3-LTSS and 1 morepython39-setuptools44.1.1-150300.7.12.1SUSE-SU-2025:01723-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 9 morepython3-setuptools, python3-setuptools-test, python3-setuptools-wheel44.1.1-150400.9.12.1SUSE-SU-2025:01810-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 7 morepython-setuptools67.7.2-150400.3.19.1SUSE-SU-2025:01704-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise Server 15 SP4-LTSS and 1 morepython310-setuptools67.6.1-150400.4.12.1SUSE-SU-2025:01709-1
SUSELinux Enterprise Micro 5.1, Linux Enterprise Micro 5.2python-setuptools40.5.0-150100.6.12.1SUSE-SU-2025:01715-1
SUSELinux Enterprise Micro 5.3, Linux Enterprise Micro 5.4, Linux Enterprise Micro 5.5python3-setuptools44.1.1-150400.9.12.1SUSE-SU-2025:01810-1
SUSELinux Enterprise Module for Public Cloud 12, Linux Enterprise Server 12 SP5-LTSS, Linux Enterprise Server LTSS Extended Security 12 SP5python-setuptools40.6.2-4.27.1SUSE-SU-2025:01695-1
SUSELinux Enterprise Module for Python 3 15 SP6python312-setuptools68.1.2-150600.3.6.1SUSE-SU-2025:01774-1
SUSELinux Enterprise Module for Python 3 15 SP7python-setuptools67.7.2-150400.3.19.1SUSE-SU-2025:01704-2
SUSELinux Enterprise Module for Python 3 15 SP7python313-setuptools72.1.0-150700.3.3.1SUSE-SU-2025:01744-1
SUSELinux Enterprise Server 12 SP5-LTSS, Linux Enterprise Server LTSS Extended Security 12 SP5python36-setuptools44.1.1-8.12.1SUSE-SU-2025:01693-1
2 more for SUSE in the JSON and on SUSE's page.
openSUSELeap 15.6python-setuptools, python-setuptools-wheel67.7.2-150400.3.19.1SUSE-SU-2025:01704-1
openSUSELeap 15.6python3-setuptools, python3-setuptools-test, python3-setuptools-wheel44.1.1-150400.9.12.1SUSE-SU-2025:01810-1
openSUSELeap 15.6python310-setuptools67.6.1-150400.4.12.1SUSE-SU-2025:01709-1
openSUSELeap 15.6python312-setuptools68.1.2-150600.3.6.1SUSE-SU-2025:01774-1
openSUSELeap 15.6python39-setuptools44.1.1-150300.7.12.1SUSE-SU-2025:01723-1
openSUSETumbleweedbazel-rules-python2.3.3-1.1openSUSE-SU-2026:11831-1
openSUSETumbleweedoci-cli3.76.2-1.1openSUSE-SU-2026:10539-1
AlmaLinux8python3-setuptools, python3-setuptools-wheel, platform-python-setuptools39.2.0-9.el8_10ALSA-2025:11036
AlmaLinux8python3.11-setuptools, python3.11-setuptools-wheel65.5.1-4.el8_10ALSA-2025:11043
AlmaLinux8python3.12-setuptools-wheel68.2.2-5.el8_10ALSA-2025:11044
AlmaLinux8python39, python39-idle, python39-libs and 5 more3.9.20-2.module_el8.10.0+4040+9207bbc0ALSA-2025:14900
AlmaLinux8python39-Cython0.29.21-5.module_el8.6.0+2780+a40f65e1ALSA-2025:14900
AlmaLinux8python39-Cython0.29.21-5.module_el8.6.0+3248+c431e88cALSA-2025:14900
AlmaLinux8python39-PyMySQL0.10.1-2.module_el8.6.0+2780+a40f65e1ALSA-2025:14900
AlmaLinux8python39-attrs20.3.0-2.module_el8.6.0+2780+a40f65e1ALSA-2025:14900
AlmaLinux8python39-cffi1.14.3-2.module_el8.6.0+2780+a40f65e1ALSA-2025:14900
AlmaLinux8python39-cffi1.14.3-2.module_el8.6.0+3248+c431e88cALSA-2025:14900
AlmaLinux8python39-chardet3.0.4-19.module_el8.6.0+2780+a40f65e1ALSA-2025:14900
AlmaLinux8python39-cryptography3.3.1-3.module_el8.10.0+3765+2f9a457dALSA-2025:14900
37 more for AlmaLinux in the JSON.
Rocky Linux8Cython0:0.29.21-5.module+el8.10.0+1582+bc278001RLSA-2025:14900
Rocky Linux8Cython0:0.29.21-5.module+el8.10.0+1860+afcc1c71RLSA-2025:14900
Rocky Linux8PyYAML0:5.4.1-1.module+el8.10.0+1582+bc278001RLSA-2025:14900
Rocky Linux8PyYAML0:5.4.1-1.module+el8.10.0+1860+afcc1c71RLSA-2025:14900
Rocky Linux8PyYAML0:5.4.1-1.module+el8.9.0+1418+f0d66789RLSA-2025:14900
Rocky Linux8mod_wsgi0:4.7.1-7.module+el8.10.0+1582+bc278001RLSA-2025:14900
Rocky Linux8mod_wsgi0:4.7.1-7.module+el8.10.0+1860+afcc1c71RLSA-2025:14900
Rocky Linux8mod_wsgi0:4.7.1-7.module+el8.10.0+1978+d4f111ba.1RLSA-2025:14900
Rocky Linux8numpy0:1.19.4-3.module+el8.10.0+1582+bc278001RLSA-2025:14900
Rocky Linux8numpy0:1.19.4-3.module+el8.10.0+1860+afcc1c71RLSA-2025:14900
Rocky Linux8pybind110:2.7.1-1.module+el8.9.0+1357+a3b80af7RLSA-2025:14900
Rocky Linux8pytest0:6.0.2-2.module+el8.10.0+1582+bc278001RLSA-2025:14900
63 more for Rocky Linux in the JSON.

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

Red Hat Product Security has rated this vulnerability "Moderate" based on the impact of the damage caused by a successful exploitation and the pre-requisites.

* Exploitation requires that the attacker have limited code execution access to a Python environment where they can trigger the vulnerable PackageIndex.download() function—this might be via a script, plugin, or automated job. Full admin rights aren't needed but a user with no access at all will be unable to exploit this vulnerability.

* The vulnerability impacts the integrity of the system within the same security boundary—it does not enable access or compromise across trust boundaries (e.g., from one container to another or from user space to kernel).

* Successful exploitation only allows the attacker to "create" new files. The vulnerability does not provide access to existing files and by an extension to any confidential information.

* Arbitrary file writes can overwrite critical config files, executables, or scripts. This can lead to persistent code execution, system misconfiguration, or unauthorized behavior, especially in automated environments. While overwriting critical files could theoretically lead to service disruption, the vulnerability in isolation does not inherently cause denial of service. The exploit doesn't target availability directly, and in many cases, systems may continue running.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

ProductPackageStateAdvisory
Red Hat Ansible Automation Platform 2.5 for RHEL 8automation-controller-0:4.6.19-1.el8apFixed 2025-08-26RHSA-2025:14686
Red Hat Ansible Automation Platform 2.5 for RHEL 9automation-controller-0:4.6.19-1.el9apFixed 2025-08-26RHSA-2025:14686
Red Hat Enterprise Linux 10python-setuptools-0:69.0.3-12.el10_0Fixed 2025-07-01RHSA-2025:9940
Red Hat Enterprise Linux 7 Extended Lifecycle Supportpython3-setuptools-0:39.2.0-10.el7_9.2Fixed 2025-07-23RHSA-2025:11607
Red Hat Enterprise Linux 7 Extended Lifecycle Supportpython-setuptools-0:0.9.8-7.el7_9.2Fixed 2025-07-28RHSA-2025:11984
Red Hat Enterprise Linux 8python3.11-setuptools-0:65.5.1-4.el8_10Fixed 2025-07-15RHSA-2025:11043
Red Hat Enterprise Linux 8python3.12-setuptools-0:68.2.2-5.el8_10Fixed 2025-07-15RHSA-2025:11044
Red Hat Enterprise Linux 8python39:3.9-8100020250823160619.d47b87a4Fixed 2025-08-28RHSA-2025:14900
Red Hat Enterprise Linux 8python39-devel:3.9-8100020250823160619.d47b87a4Fixed 2025-08-28RHSA-2025:14900
Red Hat Enterprise Linux 8python-setuptools-0:39.2.0-9.el8_10Fixed 2025-07-15RHSA-2025:11036
cert-manager Operator for Red Hat OpenShiftcert-manager/cert-manager-istio-csr-rhel9Affected
cert-manager Operator for Red Hat OpenShiftcert-manager/cert-manager-operator-rhel9Affected
cert-manager Operator for Red Hat OpenShiftcert-manager/jetstack-cert-manager-acmesolver-rhel9Affected
cert-manager Operator for Red Hat OpenShiftcert-manager/jetstack-cert-manager-rhel9Affected
Confidential Compute Attestationconfidential-compute-attestation-tech-preview/trustee-rhel9Affected
Custom Metric Autoscaler operator for Red Hat Openshiftcustom-metrics-autoscaler/custom-metrics-autoscaler-operator-bundleNot affected
Logging Subsystem for Red Hat OpenShiftopenshift-logging/elasticsearch6-rhel9Out of support scope
Logging Subsystem for Red Hat OpenShiftopenshift-logging/logging-curator5-rhel9Out of support scope
Network Observability Operatornetwork-observability/network-observability-cli-rhel9Not affected
Network Observability Operatornetwork-observability/network-observability-operator-bundleNot affected
136 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2025-47273.

GitHub PoC

Repositories on GitHub named after this CVE or listed for it by the PoC-in-GitHub index. For those marked Harbor Check: matches CVE, Flawharbor read the code and found it implements this CVE's exploitation technique: read, not run, and its dependencies only checked for warning signs, so a pointer and no guarantee. The rest are unverified: some hold a working proof of concept, some nothing useful, and some malware made to look like one. Read the code before you run any of it. How Harbor Check reads them, and what it found.

  • ahmedreda38/CVE-2025-47273-PoC Harbor Check: matches CVE 1 star, Python, created
    CVE-2025-47273 is a high-severity path traversal vulnerability in the setuptools library ,specifically version 78.1.0 .
  • AliElKhatteb/CVE-2025-47273-POC 1 star, created
    CVE-2025-47273 — setuptools path traversal PoC

Attack patterns (CAPEC)

  • CAPEC-64 Using Slashes and URL Encoding Combined to Bypass Validation Logic Likelihood: High · Severity: High
  • CAPEC-76 Manipulating Web Input to File System Calls Likelihood: High · Severity: Very High
  • CAPEC-78 Using Escaped Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-79 Using Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-126 Path Traversal Likelihood: High · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON