{"id":"CVE-2026-47764","published":"2026-08-04T17:57:15Z","modified":"2026-08-05T13:47:02Z","title":"pdm: Path traversal in wheel installation via overridden write_to_fs","vendor":"pdm-project","product":"pdm","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.4,"severity":"HIGH","version":"4.0","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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00197,"percentile":0.09567,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/pdm-project/pdm/security/advisories/GHSA-78v8-vpjp-cjqh","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/pdm-project/pdm/releases/tag/2.27.0","tags":["x_refsource_MISC"]}],"priority":{"score":7.8,"factors":[{"name":"EPSS percentile","points":1.91},{"name":"CVSS severity","points":5.88}]},"vendorSlug":"pdm-project","affectedVersions":[{"vendor":"pdm-project","product":"pdm","versions":["< 2.27.0"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"total","timestamp":"2026-08-05T13:46:49.682888Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"pdm","vulnerableRanges":["<2.27.0"],"patched":["2.27.0"],"from":["GHSA-78v8-vpjp-cjqh","PYSEC-2026-2861"],"provenance":"source"}],"summary":{"text":"The pdm Python package and dependency manager, in versions before 2.27.0, has a path traversal flaw in InstallDestination.write_to_fs() within its wheel installation code, where the override drops the safe path validation and joins paths without checking them. An attacker who can supply a malicious wheel with traversal entries can write arbitrary files on the system, which requires a user to install that wheel.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:10:30Z"},"euvd":{"id":"EUVD-2026-52854","exploited":false,"provenance":"source"}}