setuptools has a path traversal vulnerability in PackageIndex.download that leads to Arbitrary File Write (CVE-2025-47273)
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.
AI Analysis
Technical Summary
CVE-2025-47273 is a path traversal vulnerability in the Python setuptools PackageIndex.download() function. It allows attackers with limited system access to write files outside the intended temporary directory by bypassing filename sanitization when handling package download URLs. This can result in overwriting critical configuration files, executables, or scripts, potentially leading to persistent unauthorized code execution or system misconfiguration. Exploitation requires the attacker to have limited code execution privileges within the same security boundary; it does not enable privilege escalation beyond that or access to existing files or confidential information. The vulnerability impacts the integrity of the system but does not directly affect availability or confidentiality. Red Hat classifies this issue as moderate and has not yet provided an official fix meeting their criteria. Mitigation options are currently unavailable or insufficient for broad deployment.
Potential Impact
The vulnerability allows an attacker with limited code execution privileges to create or overwrite critical files on the affected system, potentially enabling persistent code execution or unauthorized system behavior. It does not provide access to existing files or confidential data and does not cross security boundaries such as container isolation or kernel privilege. While overwriting critical files could theoretically cause service disruption, the vulnerability itself does not inherently cause denial of service. The primary impact is on system integrity within the same security context.
Mitigation Recommendations
Red Hat currently does not offer an official fix or mitigation that meets their criteria for ease of use, applicability, and stability. Users should monitor Red Hat advisories for updates regarding patches or mitigations. Until a fix is available, restricting code execution privileges and limiting exposure to untrusted package sources may reduce risk. No direct remediation is currently provided by Red Hat for this vulnerability.
setuptools has a path traversal vulnerability in PackageIndex.download that leads to Arbitrary File Write (CVE-2025-47273)
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 software
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2025-47273 is a path traversal vulnerability in the Python setuptools PackageIndex.download() function. It allows attackers with limited system access to write files outside the intended temporary directory by bypassing filename sanitization when handling package download URLs. This can result in overwriting critical configuration files, executables, or scripts, potentially leading to persistent unauthorized code execution or system misconfiguration. Exploitation requires the attacker to have limited code execution privileges within the same security boundary; it does not enable privilege escalation beyond that or access to existing files or confidential information. The vulnerability impacts the integrity of the system but does not directly affect availability or confidentiality. Red Hat classifies this issue as moderate and has not yet provided an official fix meeting their criteria. Mitigation options are currently unavailable or insufficient for broad deployment.
Potential Impact
The vulnerability allows an attacker with limited code execution privileges to create or overwrite critical files on the affected system, potentially enabling persistent code execution or unauthorized system behavior. It does not provide access to existing files or confidential data and does not cross security boundaries such as container isolation or kernel privilege. While overwriting critical files could theoretically cause service disruption, the vulnerability itself does not inherently cause denial of service. The primary impact is on system integrity within the same security context.
Mitigation Recommendations
Red Hat currently does not offer an official fix or mitigation that meets their criteria for ease of use, applicability, and stability. Users should monitor Red Hat advisories for updates regarding patches or mitigations. Until a fix is available, restricting code execution privileges and limiting exposure to untrusted package sources may reduce risk. No direct remediation is currently provided by Red Hat for this vulnerability.
Technical Details
- Gcve Source
- db.gcve.eu
- Csaf Category
- csaf_security_advisory
- Csaf Version
- 2.0
- Publisher
- Red Hat Product Security
- Advisory Id
- RHSA-2025:14686
- Cve Count
- 2
- Additional Cves
- ["CVE-2025-48432"]
Threat ID: 6a1f4e88e29bf47b50081df7
Added to database: 06/02/2026, 21:43:36 UTC
Last enriched: 08/16/2026, 17:16:12 UTC
Last updated: 09/10/2026, 19:48:24 UTC
Views: 70
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.