brew-pdm-cve-2026-47764
Vulnerability from osv_homebrew
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": [
{
"ecosystem_specific": {
"fix": "bump",
"range_state": "fixed",
"upstream_fixed_in": "2.27.0"
},
"package": {
"ecosystem": "Homebrew",
"name": "pdm",
"purl": "pkg:brew/pdm"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "2.28.1"
}
],
"type": "ECOSYSTEM"
}
]
}
],
"database_specific": {
"confidence": "high",
"source": "matched",
"strategy": "git",
"upstream_evidence": [
{
"ecosystem": "GIT",
"key": "https://github.com/pdm-project/pdm",
"name": "https://github.com/pdm-project/pdm",
"strategy": "git",
"subject_version": "2.29.1"
},
{
"ecosystem": "PyPI",
"key": "pkg:pypi/pdm@2.29.1",
"name": "pdm",
"strategy": "registry",
"subject_version": "2.29.1"
},
{
"ecosystem": "Debian",
"key": "Debian/pdm",
"name": "pdm",
"strategy": "distro"
},
{
"ecosystem": "GIT",
"key": "upstream:https://github.com/pdm-project/pdm",
"name": "https://github.com/pdm-project/pdm",
"strategy": "distro",
"subject_version": "2.29.1"
},
{
"ecosystem": "PyPI",
"key": "upstream:pkg:pypi/pdm@2.29.1",
"name": "pdm",
"strategy": "distro",
"subject_version": "2.29.1"
},
{
"ecosystem": "Ubuntu",
"key": "Ubuntu/pdm",
"name": "pdm",
"strategy": "distro"
}
]
},
"details": "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.",
"id": "BREW-pdm-CVE-2026-47764",
"modified": "2026-09-15T10:09:47Z",
"published": "2026-08-13T17:25:44Z",
"references": [
{
"type": "WEB",
"url": "https://github.com/pdm-project/pdm/releases/tag/2.27.0"
},
{
"type": "ADVISORY",
"url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/47xxx/CVE-2026-47764.json"
},
{
"type": "ADVISORY",
"url": "https://github.com/pdm-project/pdm/security/advisories/GHSA-78v8-vpjp-cjqh"
},
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-47764"
}
],
"schema_version": "1.7.3",
"severity": [
{
"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": "CVSS_V4"
}
],
"summary": "pdm: Path traversal in wheel installation via overridden write_to_fs",
"upstream": [
"CVE-2026-47764",
"GHSA-78v8-vpjp-cjqh",
"PYSEC-2026-2861"
]
}
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
Related by attack behaviour
Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.