Skip to main content
EPSS 1.5%top 27%

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

0
High
Published: 06/13/2025 (06/13/2025, 06:13:15 UTC)
Source: GCVE Database
Product: setuptools

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

Affected versions
Red HatRHDHRHDH 1.5amd64registry.redhat.io/rhdh/rhdh-hub-rhel9@sha256:1d4c7fa815e480d838f9e375c65e78ef0e851ce093c84483a994673129d4643c_amd64Red Hat Developer HubRed Hat Developer Hub 1.5Red Hat Ansible Automation PlatformRed Hat Ansible Automation Platform 2.5 for RHEL 8Red Hat Ansible Automation Platform 2.5 for RHEL 9<78.1.1

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/16/2026, 17:16:12 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses