CVE-2026-47764: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in pdm-project pdm
A path traversal vulnerability exists in pdm versions prior to 2.27.0 in the write_to_fs function. This flaw allows a malicious wheel to write arbitrary files by bypassing path validation. The issue is fixed in version 2.27.0.
AI Analysis
Technical Summary
The pdm Python package manager versions before 2.27.0 contain a path traversal vulnerability (CWE-22) in the InstallDestination.write_to_fs() method. This method overrides a base class implementation that safely validated paths using Path.resolve() and is_relative_to(), but instead uses os.path.join() without validation. Consequently, a malicious wheel file can include traversal entries to write files outside the intended directory. The vulnerability has been addressed in pdm version 2.27.0.
Potential Impact
An attacker can craft a malicious wheel package that exploits the path traversal vulnerability to write arbitrary files on the filesystem during installation. This can lead to unauthorized file overwrite or creation, potentially compromising system integrity or security. The CVSS 4.0 score is 8.4 (high severity), reflecting the potential for significant impact with low attack complexity and no privileges required.
Mitigation Recommendations
Upgrade pdm to version 2.27.0 or later, where this path traversal vulnerability has been fixed. No other mitigations are specified or required.
CVE-2026-47764: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in pdm-project pdm
Description
A path traversal vulnerability exists in pdm versions prior to 2.27.0 in the write_to_fs function. This flaw allows a malicious wheel to write arbitrary files by bypassing path validation. The issue is fixed in version 2.27.0.
CVSS v4.0
Score 8.4high
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The pdm Python package manager versions before 2.27.0 contain a path traversal vulnerability (CWE-22) in the InstallDestination.write_to_fs() method. This method overrides a base class implementation that safely validated paths using Path.resolve() and is_relative_to(), but instead uses os.path.join() without validation. Consequently, a malicious wheel file can include traversal entries to write files outside the intended directory. The vulnerability has been addressed in pdm version 2.27.0.
Potential Impact
An attacker can craft a malicious wheel package that exploits the path traversal vulnerability to write arbitrary files on the filesystem during installation. This can lead to unauthorized file overwrite or creation, potentially compromising system integrity or security. The CVSS 4.0 score is 8.4 (high severity), reflecting the potential for significant impact with low attack complexity and no privileges required.
Mitigation Recommendations
Upgrade pdm to version 2.27.0 or later, where this path traversal vulnerability has been fixed. No other mitigations are specified or required.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-05-19T22:36:16.881Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a723098bf8831d5393f8dcf
Added to database: 08/04/2026, 18:34:00 UTC
Last enriched: 08/04/2026, 18:42:28 UTC
Last updated: 08/04/2026, 18:42:28 UTC
Views: 3
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.
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.