pdm: Path traversal in wheel installation via overridden write_to_fs
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| pdm-project | pdm | affected |
|
No data.
No data.
| Vendor | Product | Versions | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Pdm-project | Pdm |
|
| Source | ID | Title |
|---|---|---|
Github GHSA |
GHSA-78v8-vpjp-cjqh | PDM wheel installation leads to Path Traversal via overridden write_to_fs |
No CVSS v3.1
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: < 1% (0.197% probability within 30 days)
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
ssvc
|
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Pdm-project
Pdm-project pdm |
|
| Vendors & Products |
Pdm-project
Pdm-project pdm |
| Type | Values Removed | Values Added |
|---|---|---|
| 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. | |
| Title | pdm: Path traversal in wheel installation via overridden write_to_fs | |
| Weaknesses | CWE-22 | |
| References |
| |
| Metrics |
cvssV4_0
|