pdm: Path traversal in wheel installation via overridden write_to_fs
Key facts
- Attack vector
- Local
- Privileges required
- None
- User interaction
- Active
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- —
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub.
Summary
pdm is a Python package and dependency manager supporting the latest PEP standards. Versions prior to 2.27.0 are vulnerable to path traversal through write_to_fs. InstallDestination.write_to_fs() in src/pdm/installers/installers.py overrides the base class to add symlink/hardlink support but replaces the safe _path_with_destdir() (which validates via Path.resolve() + is_relative_to()) with a bare os.path.join() that performs no path validation. A malicious wheel with traversal entries can write arbitrary files. This issue has been fixed in version 2.27.0.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| pdm-project | pdm | before 2.27.0 | 2.27.0 | Patch available | CNA |
| — | pdm (PyPI) | before 2.27.0 | 2.27.0 | Patch available | GHSA-78v8-vpjp-cjqh |
- pdm Vendorpdm-project Affected before 2.27.0 Fixed in 2.27.0 Patch available CNA
- pdm (PyPI) Vendor— Affected before 2.27.0 Fixed in 2.27.0 Patch available GHSA-78v8-vpjp-cjqh
Remediation
- Fix · CNA pdm (pdm-project) Fixed in 2.27.0
- Fix · GHSA-78v8-vpjp-cjqh pdm (PyPI) Fixed in 2.27.0 Advisory →
Vendor assessments
Timeline
- 2026-10-02 Threatist record created from CVE-2026-47764
- 2026-10-03 Alias added: GHSA-78v8-vpjp-cjqh
References
More pdm-project vulnerabilities
- TI-2026-35274 pdm: Project-Controlled `.pdm-plugins` Content Executes Before CLI Parsing CVSS 4.0HIGH 8.4
- TI-2026-35260 pdm: Project-Local State and Config Writes Follow Symlinks CVSS 4.0MEDIUM 6.8
Sources
- CVE-2026-47764 · CVE Program
- CVE-2026-47764 · NVD
- FIRST EPSS
- GHSA-78v8-vpjp-cjqh · GitHub Advisory Database · CC BY 4.0
- CVE-2026-47764 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences