StraitOfVuln
Latest / CVE-2026-141547

CVE-2026-141547

HighCVSS 7.0 (v3.1)Received
CVE.org ↗NVD ↗

Description

PDM is a Python package and dependency manager. From 2.27.0 until 2.29.8, a repository-controlled pdm.toml can override the global_only setting cache_dir because src/pdm/project/config.py enforces the restriction on writes but not when project configuration is read. In src/pdm/project/core.py, Project.config gives the project value precedence and project_plugins_dir is computed beneath the resulting cache directory. During Core.__init__ in src/pdm/core.py, load_plugins calls site.addsitedir on that directory's site-packages, processing executable .pth import lines before argument parsing. A malicious checkout can therefore execute Python code as the invoking user when PDM runs, including for pdm --version, if the prepared plugin directory matches the checkout path and Python version and PDM_CACHE_DIR is not set. This bypasses the earlier relocation of project plugins out of the checkout for CVE-2026-47781. This issue is fixed in version 2.29.8.

Details

CVE ID
CVE-2026-141547
Published / updated
02 Dec 2026, 19:18 UTC · last modified 03 Dec 2026, 00:18 UTC
Severity
HIGH
CVSS score
7.0 · v3.1 · CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H · Attack vector: Local
Affected vendor
pdm-project
Affected products
pdm
Affected versions
pdm: >= 2.27.0, < 2.29.8
From the publisher's (CNA) CVE record. NVD analysis is pending.
Fixed versions
Not stated in the data. Check the vendor advisory.
Exploitation status
Not in CISA KEV (no confirmed exploitation recorded)
EPSS
0.47% probability of exploitation in the next 30 days · 42% percentile (03 Dec 2026)
Weakness
Remediation
See the vendor advisory below.
Source (CNA)
security-advisories@github.com