pdm — security advisory
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.
- Products
- pdm
- Affected versions
- 2.20.1+ds1-2, 2.23.1-4, 2.27.0-1, 2.28.0-1, 2.28.1-1
- Fixed versions
- Not specified
- CVEs
- CVE-2026-47764
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 02:44 UTC · Revision 1
Source evidence
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.
osv:UBUNTU-CVE-2026-47764
pdm
Fixed versions: Not specified
pdm
Fixed versions: Not specified
Complete source record
{
"id": "3eadcf902795940d4f33f8e782b9dd6cfef2c682ab08694dc934fe8a7e927c70",
"url": "https://osv.dev/vulnerability/UBUNTU-CVE-2026-47764",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "UBUNTU-CVE-2026-47764",
"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.",
"evidence": "osv:UBUNTU-CVE-2026-47764",
"products": [
{
"name": {
"value": "pdm",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.23.1-4",
"evidence": "/affected/0/versions"
},
{
"value": "2.27.0-1",
"evidence": "/affected/0/versions"
},
{
"value": "2.28.0-1",
"evidence": "/affected/0/versions"
},
{
"value": "2.28.1-1",
"evidence": "/affected/0/versions"
}
]
},
{
"name": {
"value": "pdm",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.20.1+ds1-2",
"evidence": "/affected/1/versions"
},
{
"value": "2.23.1-4",
"evidence": "/affected/1/versions"
}
]
}
],
"severity": "high",
"structured": {
"id": "UBUNTU-CVE-2026-47764",
"aliases": [
"UBUNTU-CVE-2026-47764"
],
"metrics": [
{
"type": "CVSS_V4",
"score": "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"
},
{
"type": "Ubuntu",
"score": "medium"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "pdm",
"purl": "pkg:deb/ubuntu/pdm?arch=source&distro=stonking",
"ecosystem": "Ubuntu:26.10"
},
"versions": [
"2.23.1-4",
"2.27.0-1",
"2.28.0-1",
"2.28.1-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-47764.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "python3-pdm",
"binary_version": "2.28.1-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "pdm",
"purl": "pkg:deb/ubuntu/pdm?arch=source&distro=resolute",
"ecosystem": "Ubuntu:26.04:LTS"
},
"versions": [
"2.20.1+ds1-2",
"2.23.1-4"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-47764.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "python3-pdm",
"binary_version": "2.23.1-4"
}
]
}
}
],
"modified": "2026-10-17T12:58:56.542905579Z",
"provider": "osv",
"upstream": [
"CVE-2026-47764"
],
"references": [
"https://ubuntu.com/security/CVE-2026-47764",
"https://www.cve.org/CVERecord?id=CVE-2026-47764",
"https://github.com/pdm-project/pdm/security/advisories/GHSA-78v8-vpjp-cjqh",
"https://github.com/pdm-project/pdm/releases/tag/2.27.0"
]
},
"related_cves": [
{
"value": "CVE-2026-47764",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 359180,
"published_at": "2026-08-04T19:16:00+00:00"
}