PT-2026-166205

CVE-2026-141547

·

Published

2026-12-02

·

Updated

2026-12-02

Description by

CVSS 3.1
7.0
High
MetricsAV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions PDM versions 2.27.0 through 2.29.7
Description A repository-controlled pdm.toml file can override the global only setting for cache dir because the restriction on writes is enforced in src/pdm/project/config.py 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 based on the resulting cache directory. During Core. init in src/pdm/core.py, load plugins calls site.addsitedir() on the site-packages of that directory, processing executable .pth import lines before argument parsing. Consequently, a malicious checkout can execute Python code as the invoking user when PDM runs, including during the execution of pdm --version, provided the prepared plugin directory matches the checkout path and Python version, and PDM CACHE DIR is not set.
Recommendations Update to version 2.29.8.
Exploitability
Exploit
Fix
Impacts
Vendors
Affected products
Related identifiers
GHSA-FV38-CHG5-6PG2
Found an issue in the description? Have something to add? Feel free to write us 👾