CVE-2026-47764

HIGH

pdm: Path traversal in wheel installation via overridden write_to_fs

Title source: cna
STIX 2.1

Description

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.

References (2)

Core 2
Core References
X_Refsource_Misc x_refsource_misc
https://github.com/pdm-project/pdm/releases/tag/2.27.0

Scores

CVSS v4 8.4
EPSS 0.0015
EPSS Percentile 4.5%
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

CISA SSVC

Vulnrichment
Exploitation none
Automatable yes
Technical Impact total

Details

CWE
CWE-22
Status published
Products (1)
pdm-project/pdm < 2.27.0
Published Aug 04, 2026
Tracked Since Aug 05, 2026