CVE-2025-47273
Public on
Last Modified:
Description
A path traversal vulnerability in the Python setuptools library allows attackers with limited system access to write files outside the intended temporary directory by manipulating package download URLs. This flaw bypasses basic filename sanitization and can lead to unauthorized overwrites of important system files, creating opportunities for further compromise. While it doesn't expose data or require user interaction, it poses a high integrity risk and is especially concerning in environments that rely on automated package handling or internal tooling built on setuptools.
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.
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.
Additional Information
- This content is not included.Bugzilla 2366982: setuptools: Path Traversal Vulnerability in setuptools PackageIndex
- Content from cwe.mitre.org is not included.CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
- FAQ: Frequently asked questions about CVE-2025-47273
- Offline Security Data data is available for integration with other systems. See Offline Security Data API to get started.
External References
Content from www.cve.org is not included.https://www.cve.org/CVERecord?id=CVE-2025-47273
Content from nvd.nist.gov is not included.https://nvd.nist.gov/vuln/detail/CVE-2025-47273
Content from github.com is not included.https://github.com/pypa/setuptools/issues/4946
Affected Packages and Issued Red Hat Security Errata
| Products / Services | Components | State | Errata |
|---|---|---|---|
| Builds for Red Hat OpenShift 1.4.1 | openshift-builds/openshift-builds-shared-resource-rhel9 | Fixed | RHSA-2025:10787 |
| Builds for Red Hat OpenShift 1.4.1 | openshift-builds/openshift-builds-shared-resource-webhook-rhel9 | Fixed | RHSA-2025:10787 |
| Builds for Red Hat OpenShift 1.4.1 | openshift-builds/openshift-builds-shared-resource-rhel9 | Fixed | RHSA-2025:11146 |
| Builds for Red Hat OpenShift 1.4.1 | openshift-builds/openshift-builds-shared-resource-webhook-rhel9 | Fixed | RHSA-2025:11146 |
| Builds for Red Hat OpenShift 1.5.2 | openshift-builds/openshift-builds-shared-resource-rhel9 | Fixed | RHSA-2025:11388 |
| Builds for Red Hat OpenShift 1.5.2 | openshift-builds/openshift-builds-shared-resource-webhook-rhel9 | Fixed | RHSA-2025:11388 |
| Confidential Compute Attestation | confidential-compute-attestation-tech-preview/trustee-rhel9 | Affected | |
| Custom Metric Autoscaler operator for Red Hat Openshift | custom-metrics-autoscaler/custom-metrics-autoscaler-operator-bundle | Not affected | |
| Logging Subsystem for Red Hat OpenShift | openshift-logging/elasticsearch6-rhel9 | Affected | |
| Logging Subsystem for Red Hat OpenShift | openshift-logging/logging-curator5-rhel9 | Affected | |
| Network Observability Operator | network-observability/network-observability-cli-rhel9 | Not affected | |
| Network Observability Operator | network-observability/network-observability-operator-bundle | Not affected | |
| Network Observability Operator | network-observability/network-observability-rhel9-operator | Not affected | |
| OpenShift Lightspeed | openshift-lightspeed-tech-preview/lightspeed-console-plugin-rhel9 | Affected | |
| OpenShift Lightspeed | openshift-lightspeed-tech-preview/lightspeed-service-api-rhel9 | Affected | |
| OpenShift Pipelines | openshift-pipelines/pipelines-chains-controller-rhel8 | Will not fix | |
| OpenShift Pipelines | openshift-pipelines/pipelines-cli-tkn-rhel8 | Will not fix | |
| OpenShift Pipelines | openshift-pipelines/pipelines-console-plugin-rhel8 | Will not fix | |
| OpenShift Pipelines | openshift-pipelines/pipelines-console-plugin-rhel9 | Will not fix | |
| OpenShift Pipelines | openshift-pipelines/pipelines-controller-rhel8 | Will not fix | |
| OpenShift Pipelines | openshift-pipelines/pipelines-entrypoint-rhel8 | Will not fix | |
| OpenShift Pipelines | openshift-pipelines/pipelines-events-rhel8 | Will not fix | |
| OpenShift Pipelines | openshift-pipelines/pipelines-git-init-rhel8 | Will not fix | |
| OpenShift Pipelines | openshift-pipelines/pipelines-hub-api-rhel8 | Will not fix | |
| OpenShift Pipelines | openshift-pipelines/pipelines-hub-api-rhel9 | Will not fix | |
| OpenShift Pipelines | openshift-pipelines/pipelines-hub-db-migration-rhel8 | Will not fix | |
| OpenShift Pipelines | openshift-pipelines/pipelines-hub-db-migration-rhel9 | Will not fix | |
| OpenShift Pipelines | openshift-pipelines/pipelines-hub-ui-rhel8 | Will not fix | |
| OpenShift Pipelines | openshift-pipelines/pipelines-hub-ui-rhel9 | Will not fix | |
| OpenShift Pipelines | openshift-pipelines/pipelines-nop-rhel8 | Will not fix | |
| OpenShift Pipelines | openshift-pipelines/pipelines-operator-proxy-rhel8 | Will not fix | |
| OpenShift Pipelines | openshift-pipelines/pipelines-operator-webhook-rhel8 | Will not fix | |
| OpenShift Pipelines | openshift-pipelines/pipelines-pipelines-as-code-cli-rhel8 | Will not fix | |
| OpenShift Pipelines | openshift-pipelines/pipelines-pipelines-as-code-controller-rhel8 | Will not fix | |
| OpenShift Pipelines | openshift-pipelines/pipelines-pipelines-as-code-watcher-rhel8 | Will not fix | |
| OpenShift Pipelines | openshift-pipelines/pipelines-pipelines-as-code-webhook-rhel8 | Will not fix | |
| OpenShift Pipelines | openshift-pipelines/pipelines-resolvers-rhel8 | Will not fix | |
| OpenShift Pipelines | openshift-pipelines/pipelines-results-api-rhel8 | Will not fix | |
| OpenShift Pipelines | openshift-pipelines/pipelines-results-watcher-rhel8 | Will not fix | |
| OpenShift Pipelines | openshift-pipelines/pipelines-rhel8-operator | Will not fix | |
| OpenShift Pipelines | openshift-pipelines/pipelines-sidecarlogresults-rhel8 | Will not fix | |
| OpenShift Pipelines | openshift-pipelines/pipelines-triggers-controller-rhel8 | Will not fix | |
| OpenShift Pipelines | openshift-pipelines/pipelines-triggers-core-interceptors-rhel8 | Will not fix | |
| OpenShift Pipelines | openshift-pipelines/pipelines-triggers-eventlistenersink-rhel8 | Will not fix | |
| OpenShift Pipelines | openshift-pipelines/pipelines-triggers-webhook-rhel8 | Will not fix | |
| OpenShift Pipelines | openshift-pipelines/pipelines-webhook-rhel8 | Will not fix | |
| OpenShift Pipelines | openshift-pipelines/pipelines-workingdirinit-rhel8 | Will not fix | |
| OpenShift Serverless | openshift-serverless-1/kn-ekb-dispatcher-rhel8 | Not affected | |
| OpenShift Serverless | openshift-serverless-1/kn-ekb-kafka-controller-rhel8 | Not affected | |
| OpenShift Serverless | openshift-serverless-1/kn-ekb-post-install-rhel8 | Not affected | |
| OpenShift Serverless | openshift-serverless-1/kn-ekb-receiver-rhel8 | Not affected | |
| OpenShift Serverless | openshift-serverless-1/kn-ekb-webhook-kafka-rhel8 | Not affected | |
| Red Hat Ansible Automation Platform 2.5 for RHEL 8 | automation-controller | Fixed | RHSA-2025:14686 |
| Red Hat Ansible Automation Platform 2.5 for RHEL 9 | automation-controller | Fixed | RHSA-2025:14686 |
| Red Hat Developer Hub 1.5 | rhdh/rhdh-hub-rhel9 | Fixed | RHSA-2025:10992 |
| Red Hat Developer Hub 1.6 | rhdh/rhdh-hub-rhel9 | Fixed | RHSA-2025:9966 |
| Red Hat Enterprise Linux 10 | python-setuptools | Fixed | RHSA-2025:9940 |
| Red Hat Enterprise Linux 6 | python-setuptools | Fix deferred | |
| Red Hat Enterprise Linux 7 Extended Lifecycle Support | python3-setuptools | Fixed | RHSA-2025:11607 |
| Red Hat Enterprise Linux 7 Extended Lifecycle Support | python-setuptools | Fixed | RHSA-2025:11984 |
| Red Hat Enterprise Linux 8 | python3x-setuptools | Affected | |
| Red Hat Enterprise Linux 8 | python-setuptools | Fixed | RHSA-2025:11036 |
| Red Hat Enterprise Linux 8 | python3.11-setuptools | Fixed | RHSA-2025:11043 |
| Red Hat Enterprise Linux 8 | python3.12-setuptools | Fixed | RHSA-2025:11044 |
| Red Hat Enterprise Linux 8 | python39-devel:3.9 | Fixed | RHSA-2025:14900 |
| Red Hat Enterprise Linux 8 | python39:3.9 | Fixed | RHSA-2025:14900 |
| Red Hat Enterprise Linux 8.2 Advanced Update Support | python-setuptools | Fixed | RHSA-2025:11426 |
| Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support | python-setuptools | Fixed | RHSA-2025:11425 |
| Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support | python39:3.9 | Fixed | RHSA-2025:15411 |
| Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On | python-setuptools | Fixed | RHSA-2025:11425 |
| Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On | python39:3.9 | Fixed | RHSA-2025:15411 |
| Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support | python-setuptools | Fixed | RHSA-2025:11424 |
| Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support | python39:3.9 | Fixed | RHSA-2025:15410 |
| Red Hat Enterprise Linux 8.6 Telecommunications Update Service | python-setuptools | Fixed | RHSA-2025:11424 |
| Red Hat Enterprise Linux 8.6 Telecommunications Update Service | python39:3.9 | Fixed | RHSA-2025:15410 |
| Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions | python-setuptools | Fixed | RHSA-2025:11424 |
| Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions | python39:3.9 | Fixed | RHSA-2025:15410 |
| Red Hat Enterprise Linux 8.8 Telecommunications Update Service | python-setuptools | Fixed | RHSA-2025:11427 |
| Red Hat Enterprise Linux 8.8 Telecommunications Update Service | python3.11-setuptools | Fixed | RHSA-2025:13804 |
| Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions | python-setuptools | Fixed | RHSA-2025:11427 |
| Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions | python3.11-setuptools | Fixed | RHSA-2025:13804 |
| Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions | python39:3.9 | Fixed | RHSA-2025:15408 |
| Red Hat Enterprise Linux 9 | python-setuptools | Fixed | RHSA-2025:10407 |
| Red Hat Enterprise Linux 9 | fence-agents | Fixed | RHSA-2025:11463 |
| Red Hat Enterprise Linux 9 | python3.12-setuptools | Fixed | RHSA-2025:12834 |
| Red Hat Enterprise Linux 9 | python3.11-setuptools | Fixed | RHSA-2025:13578 |
| Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions | fence-agents | Fixed | RHSA-2025:11464 |
| Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions | python-setuptools | Fixed | RHSA-2025:11584 |
| Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions | fence-agents | Fixed | RHSA-2025:11101 |
| Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions | python-setuptools | Fixed | RHSA-2025:12020 |
| Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions | python3.11-setuptools | Fixed | RHSA-2025:13803 |
| Red Hat Enterprise Linux 9.4 Extended Update Support | fence-agents | Fixed | RHSA-2025:11102 |
| Red Hat Enterprise Linux 9.4 Extended Update Support | python-setuptools | Fixed | RHSA-2025:11868 |
| Red Hat Enterprise Linux 9.4 Extended Update Support | python3.12-setuptools | Fixed | RHSA-2025:13668 |
| Red Hat Enterprise Linux 9.4 Extended Update Support | python3.11-setuptools | Fixed | RHSA-2025:13669 |
| Red Hat Enterprise Linux AI (RHEL AI) | rhelai1/docling-serve-rhel9 | Will not fix | |
| Red Hat Enterprise Linux AI (RHEL AI) | rhelai1/ui-rhel9 | Will not fix | |
| Red Hat Enterprise Linux AI 1.5 | rhelai1/instructlab-intel-rhel9 | Fixed | This content is not included.RHSA-2025:19421 |
| Red Hat Enterprise Linux AI 1.5 | rhelai1/bootc-intel-rhel9 | Fixed | RHSA-2025:19422 |
| Red Hat Enterprise Linux AI 1.5 | rhelai1/instructlab-nvidia-rhel9 | Fixed | RHSA-2025:19423 |
| Red Hat Enterprise Linux AI 1.5 | rhelai1/bootc-azure-amd-rhel9 | Fixed | RHSA-2025:19424 |
| Red Hat Enterprise Linux AI 1.5 | rhelai1/instructlab-amd-rhel9 | Fixed | RHSA-2025:19425 |
| Red Hat Enterprise Linux AI 1.5 | rhelai1/bootc-gcp-nvidia-rhel9 | Fixed | RHSA-2025:19426 |
| Red Hat Enterprise Linux AI 1.5 | rhelai1/bootc-amd-rhel9 | Fixed | RHSA-2025:19427 |
| Red Hat Enterprise Linux AI 1.5 | rhelai1/bootc-nvidia-rhel9 | Fixed | RHSA-2025:19428 |
| Red Hat Enterprise Linux AI 1.5 | rhelai1/bootc-aws-nvidia-rhel9 | Fixed | RHSA-2025:19429 |
| Red Hat Enterprise Linux AI 1.5 | rhelai1/bootc-azure-nvidia-rhel9 | Fixed | RHSA-2025:19430 |
| Red Hat Offline Knowledge Portal | offline-knowledge-portal/rhokp-rhel9 | Affected | |
| Red Hat OpenShift AI (RHOAI) | rhoai/odh-feast-operator-rhel8 | Affected | |
| Red Hat OpenShift AI (RHOAI) | rhoai/odh-feature-server-rhel8 | Affected | |
| Red Hat OpenShift AI (RHOAI) | rhoai/odh-modelmesh-runtime-adapter-rhel8 | Affected | |
| Red Hat OpenShift AI (RHOAI) | rhods/odh-ml-pipelines-api-server-rhel8 | Affected | |
| Red Hat OpenShift AI (RHOAI) | rhods/odh-ml-pipelines-artifact-manager-rhel8 | Affected | |
| Red Hat OpenShift AI (RHOAI) | rhods/odh-ml-pipelines-cache-rhel8 | Affected | |
| Red Hat OpenShift AI (RHOAI) | rhods/odh-ml-pipelines-persistenceagent-rhel8 | Affected | |
| Red Hat OpenShift AI (RHOAI) | rhods/odh-ml-pipelines-scheduledworkflow-rhel8 | Affected | |
| Red Hat OpenShift AI (RHOAI) | rhoai/odh-dashboard-rhel8 | Not affected | |
| Red Hat OpenShift AI (RHOAI) | rhoai/odh-ml-pipelines-api-server-rhel8 | Not affected | |
| Red Hat OpenShift AI (RHOAI) | rhoai/odh-ml-pipelines-artifact-manager-rhel8 | Not affected | |
| Red Hat OpenShift AI (RHOAI) | rhoai/odh-ml-pipelines-cache-rhel8 | Not affected | |
| Red Hat OpenShift AI (RHOAI) | rhoai/odh-ml-pipelines-persistenceagent-rhel8 | Not affected | |
| Red Hat OpenShift AI (RHOAI) | rhoai/odh-ml-pipelines-runtime-generic-rhel8 | Not affected | |
| Red Hat OpenShift AI (RHOAI) | rhoai/odh-ml-pipelines-scheduledworkflow-rhel8 | Not affected | |
| Red Hat OpenShift AI (RHOAI) | rhoai/odh-model-registry-rhel8 | Not affected | |
| Red Hat OpenShift AI (RHOAI) | rhoai/odh-modelmesh-rhel8 | Not affected | |
| Red Hat OpenShift AI (RHOAI) | rhoai/odh-training-operator-rhel8 | Not affected | |
| Red Hat OpenShift AI (RHOAI) | rhoai/odh-trustyai-service-rhel8 | Not affected | |
| Red Hat OpenShift Container Platform 4 | openshift4/microshift-bootc-rhel9 | Not affected | |
| Red Hat OpenShift Container Platform 4 | openshift4/ose-ansible-operator | Not affected | |
| Red Hat OpenShift Container Platform 4 | openshift4/ose-ansible-rhel9-operator | Not affected | |
| Red Hat OpenShift Container Platform 4 | openshift4/ztp-site-generate-rhel8 | Not affected | |
| Red Hat OpenShift Container Platform 4 | python-setuptools | Under investigation | |
| Red Hat OpenShift Container Platform 4 | rhcos | Under investigation | |
| Red Hat OpenShift Dev Spaces | devspaces/udi-rhel8 | Affected | |
| Red Hat OpenShift Dev Spaces | devspaces/udi-rhel9 | Affected | |
| Red Hat Quay 3.14 | quay/quay-rhel8 | Fixed | RHSA-2026:4215 |
| Red Hat Satellite 6.17 | satellite/iop-advisor-engine-rhel9 | Fixed | RHSA-2025:10809 |
| Red Hat Trusted Artifact Signer | rhtas/client-server-rhel9 | Affected | |
| Red Hat Trusted Artifact Signer | rhtas/rekor-backfill-redis-rhel9 | Affected | |
| Red Hat Trusted Artifact Signer | rhtas/rekor-cli-rhel9 | Affected | |
| Red Hat Trusted Artifact Signer | rhtas/rekor-search-ui-rhel9 | Affected | |
| Red Hat Trusted Artifact Signer | rhtas/rekor-server-rhel9 | Affected | |
| Red Hat Trusted Artifact Signer | rhtas/segment-reporting-rhel9 | Affected | |
| Red Hat Trusted Artifact Signer | rhtas/trillian-database-rhel9 | Affected | |
| Red Hat Trusted Artifact Signer | rhtas/trillian-redis-rhel9 | Affected | |
| Red Hat Trusted Artifact Signer | rhtas/tuffer-rhel9 | Affected | |
| Red Hat Trusted Artifact Signer | rhtas/tuftool-rhel9 | Affected | |
| Red Hat build of Quarkus Native builder | mandrel-for-jdk-21-rhel8 | Affected | |
| Service Telemetry Framework 1.5 | stf/prometheus-webhook-snmp-rhel8 | Not affected | |
| cert-manager Operator for Red Hat OpenShift | cert-manager/cert-manager-istio-csr-rhel9 | Affected | |
| cert-manager Operator for Red Hat OpenShift | cert-manager/cert-manager-operator-rhel9 | Affected | |
| cert-manager Operator for Red Hat OpenShift | cert-manager/jetstack-cert-manager-acmesolver-rhel9 | Affected | |
| cert-manager Operator for Red Hat OpenShift | cert-manager/jetstack-cert-manager-rhel9 | Affected |
Common Vulnerability Scoring System (CVSS) Score Details
Important note
CVSS scores for open source components depend on vendor-specific factors (e.g. version or build chain). Therefore, Red Hat's score and impact rating can be different from NVD and other vendors. Red Hat remains the authoritative CVE Naming Authorities (CNA) source for its products and services (see Red Hat classifications ).
| CVSS v3 Score Breakdown | Red Hat | NVD |
|---|---|---|
| CVSS v3 Base Score | 7.1 | 8.8 |
| Attack Vector | Network | Network |
| Attack Complexity | Low | Low |
| Privileges Required | Low | Low |
| User Interaction | None | None |
| Scope | Unchanged | Unchanged |
| Confidentiality Impact | None | High |
| Integrity Impact | High | High |
| Availability Impact | Low | High |
CVSS v3 Vector
Red Hat CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:L
NVD CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Frequently Asked Questions
Why is Red Hat's CVSS v3 score or Impact different from other vendors?
For more information, see https://access.redhat.com/solutions/762393.
My product is listed as "Under investigation" or "Affected", when will Red Hat release a fix for this vulnerability?
- "Under investigation" doesn't necessarily mean that the product is affected by this vulnerability. It only means that our Analysis Team is still working on determining whether the product is affected and how it is affected.
- "Affected" means that our Analysis Team has determined that this product is affected by this vulnerability and might release a fix to address this in the near future.
What can I do if my product is listed as "Will not fix"?
Available options depend mostly on the Impact of the vulnerability and the current Life Cycle phase of your product. Overall, you have the following options:
- Upgrade to a supported product version that includes a fix for this vulnerability (recommended).
- Apply a mitigation (if one exists).
- Open a This content is not included.support case to request a prioritization of releasing a fix for this vulnerability.
What can I do if my product is listed as "Fix deferred"?
Available options depend mostly on the Impact of the vulnerability and the current Life Cycle phase of your product. Overall, you have the following options:
- Apply a mitigation (if one exists).
- Open a This content is not included.support case to request a prioritization of releasing a fix for this vulnerability.
- Red Hat Engineering focuses on addressing high-priority issues based on their complexity or limited lifecycle support. Therefore, lower-priority issues will not receive immediate fixes.
What is a mitigation?
I have a Red Hat product but it is not in the above list, is it affected?
Why is my security scanner reporting my product as vulnerable to this vulnerability even though my product version is fixed or not affected?
My product is listed as "Out of Support Scope". What does this mean?
Not sure what something means? Check out our Security Glossary.