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

- Severity: High 8.4 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.15%, higher than 4% of CVEs (2026-12-01)
- Published: 2026-06-10T20:33:13.000Z
- Modified: 2026-10-24T16:10:00.153Z
- Also known as: GHSA-78v8-vpjp-cjqh, PYSEC-2026-2861
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- pdm-project pdm: < 2.27.0
- pdm (PyPI): before 2.27.0

## Every score

- GitHub_M: CVSS:4.0 8.4 High `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`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N`
- PyPA Advisory Database: CVSS:4.0 `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N`

## References

- <https://github.com/pdm-project/pdm/security/advisories/GHSA-78v8-vpjp-cjqh> (web)
- <https://github.com/pdm-project/pdm/releases/tag/2.27.0> (web)
- <https://github.com/pdm-project/pdm/pull/3787> (web)
- <https://github.com/pdm-project/pdm> (package)
- <https://pypi.org/project/pdm> (package)
- <https://github.com/advisories/GHSA-78v8-vpjp-cjqh> (advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-47764> (advisory)

## Sources

- CVE List: [CVE-2026-47764](https://www.cve.org/CVERecord?id=CVE-2026-47764), CVE Terms of Use, modified 2026-08-05
- GitHub Advisory Database: [GHSA-78v8-vpjp-cjqh](https://github.com/advisories/GHSA-78v8-vpjp-cjqh), CC-BY-4.0, modified 2026-07-13
- NVD: [CVE-2026-47764](https://nvd.nist.gov/vuln/detail/CVE-2026-47764), Public domain, modified 2026-10-24
- PyPA Advisory Database: [PYSEC-2026-2861](https://osv.dev/vulnerability/PYSEC-2026-2861), CC-BY-4.0, modified 2026-07-13

---

Page: https://cve.day/CVE-2026-47764 · Whole record: https://cve.day/CVE-2026-47764.json · Rebuilt by cve.day 2026-11-25T22:59:31.003Z
