{"id":"CVE-2026-47764","state":"PUBLISHED","title":"pdm: Path traversal in wheel installation via overridden write_to_fs","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.","publishedAt":"2026-08-04T17:57:15.756Z","updatedAt":"2026-08-05T13:47:02.050Z","severity":{"score":8.4,"label":"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","source":"GitHub_M"},"assigner":"GitHub_M","products":["pdm-project pdm"],"affected":[{"vendor":"pdm-project","product":"pdm","versions":[{"version":"< 2.27.0","status":"affected"}]}],"references":["https://github.com/pdm-project/pdm/security/advisories/GHSA-78v8-vpjp-cjqh","https://github.com/pdm-project/pdm/releases/tag/2.27.0"],"weaknesses":["CWE-22"],"ingestedAt":"2026-10-29T20:12:07.131Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/47xxx/CVE-2026-47764.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-47764","state":"PUBLISHED","datePublished":"2026-08-04T17:57:15.756Z","dateUpdated":"2026-08-05T13:47:02.050Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-05-19T22:36:16.881Z"},"containers":{"cna":{"title":"pdm: Path traversal in wheel installation via overridden write_to_fs","descriptions":[{"lang":"en","value":"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":[{"vendor":"pdm-project","product":"pdm","versions":[{"version":"< 2.27.0","status":"affected"}]}],"references":[{"url":"https://github.com/pdm-project/pdm/security/advisories/GHSA-78v8-vpjp-cjqh","name":"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","name":"https://github.com/pdm-project/pdm/releases/tag/2.27.0","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV4_0":{"attackVector":"LOCAL","attackComplexity":"LOW","attackRequirements":"NONE","privilegesRequired":"NONE","userInteraction":"ACTIVE","vulnConfidentialityImpact":"HIGH","vulnIntegrityImpact":"HIGH","vulnAvailabilityImpact":"HIGH","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","subAvailabilityImpact":"NONE","baseScore":8.4,"baseSeverity":"HIGH","vectorString":"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","version":"4.0"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-22","lang":"en","description":"CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-08-04T17:57:15.756Z"},"source":{"advisory":"GHSA-78v8-vpjp-cjqh","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-08-05T13:46:49.682888Z","id":"CVE-2026-47764","options":[{"Exploitation":"none"},{"Automatable":"yes"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-08-05T13:47:02.050Z"}}]}}}