Vulnerability · Published Aug 4, 2026 · Assigned by GitHub_M

CVE-2026-47764pdm: Path traversal in wheel installation via overridden write_to_fs

High 8.4

In plain English

A high-severity path traversal in pdm from pdm-project. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 9% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 4.0)8.4High
Exploit odds (30 days)0.2%top 90.5% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12pdmno fix listedDEBIAN-CVE-2026-47764
Debian:13pdmno fix listedDEBIAN-CVE-2026-47764
Debian:14pdm2.27.0-1DEBIAN-CVE-2026-47764
PyPIpdm2.27.0PYSEC-2026-2861
PyPIpdm2.27.0GHSA-78v8-vpjp-cjqh
Ubuntu:26.04:LTSpdmno fix listedUBUNTU-CVE-2026-47764
Ubuntu:26.10pdmno fix listedUBUNTU-CVE-2026-47764

Affected products (as reported)

VendorProductVersions
pdm-project pdm < 2.27.0

Weakness: CWE-22 · Vector: 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

References