{"id":"CVE-2026-47764","aliases":["CVE-2026-47764","GHSA-78v8-vpjp-cjqh","PYSEC-2026-2861"],"related":[],"kind":"vulnerability","state":"published","title":"pdm: Path traversal in wheel installation via overridden write_to_fs","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"en","text":"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. Same class as Poetry CVE-2026-34591. Fix ready at: https://github.com/pdm-project/pdm/pull/3787.","format":"markdown","source":"ghsa"},{"lang":"es","text":"pdm es un gestor de paquetes y dependencias de Python que soporta los últimos estándares PEP. Las versiones anteriores a la 2.27.0 son vulnerables a un salto de ruta a través de write_to_fs. InstallDestination.write_to_fs() en src/pdm/installers/installers.py anula la clase base para añadir soporte para enlaces simbólicos/enlaces duros, pero reemplaza la función segura _path_with_destdir() (que valida a través de Path.resolve() + is_relative_to()) con un os.path.join() simple que no realiza ninguna validación de ruta. Un wheel malicioso con entradas de salto de ruta puede escribir archivos arbitrarios. Este problema ha sido solucionado en la versión 2.27.0.","source":"nvd"}],"published":"2026-06-10T20:33:13.000Z","modified":"2026-10-24T16:10:00.153Z","severity":{"scorer":"GitHub_M","scheme":"CVSS: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","score":8.4,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS: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","score":8.4,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"HIGH"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:4.0","vector":"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"}],"cwes":["CWE-22"],"affected":[{"ranges":[{"version":"< 2.27.0","status":"affected"}],"vendor":"pdm-project","product":"pdm","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.27.0"}],"ecosystem":"PyPI","package":"pdm","purl":"pkg:pypi/pdm","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.27.0"}],"ecosystem":"PyPI","package":"pdm","purl":"pkg:pypi/pdm","source":"pysec"}],"references":[{"url":"https://github.com/pdm-project/pdm/security/advisories/GHSA-78v8-vpjp-cjqh","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/pdm-project/pdm/releases/tag/2.27.0","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/pdm-project/pdm/pull/3787","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/pdm-project/pdm","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/pdm","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-78v8-vpjp-cjqh","tags":["advisory"],"sources":["pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-47764","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"total","date":"2026-08-05T13:46:49.682Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-47764","url":"https://www.cve.org/CVERecord?id=CVE-2026-47764","licence":"CVE Terms of Use","modified":"2026-08-05T13:47:02.050Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-78v8-vpjp-cjqh","url":"https://github.com/advisories/GHSA-78v8-vpjp-cjqh","licence":"CC-BY-4.0","modified":"2026-07-13T16:42:32.212Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-47764","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-47764","licence":"Public domain","modified":"2026-10-24T16:10:00.153Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-2861","url":"https://osv.dev/vulnerability/PYSEC-2026-2861","licence":"CC-BY-4.0","modified":"2026-07-13T16:32:55.750Z"}],"updatedAt":"2026-11-25T22:59:31.003Z","epss":{"score":0.00148,"percentile":0.04217,"date":"2026-12-01T12:00:22.000Z"}}