CVE-2026-141547
HIGH 7.0CVSS 3.1PDM: A project pdm.toml can still set cache_dir, which brings back project-controlled plugin code at pdm startup
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.
- Published
- 2 Dec 2026
- Last modified
- 3 Dec 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Received
- Weakness
- CWE-15CWE-94
- Sources
- NVDJSONCVE ListJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 7.0 | CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H |
| CVE List | GitHub_M | CVSS 3.1 | HIGH 7.0 | CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H |
| CVE List | CISA-ADP | SSVC | Exploitation: poc; Automatable: no; Technical Impact: total |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| CVE List | pdm-project | pdm | = >= 2.27.0, < 2.29.8 |
References
- https://github.com/pdm-project/pdm/commit/8cfea30571b0694dacbc7c5e4459527f83a4c4cc · x_refsource_MISC
- https://github.com/pdm-project/pdm/releases/tag/2.29.8 · x_refsource_MISC
- https://github.com/pdm-project/pdm/security/advisories/GHSA-fv38-chg5-6pg2 · x_refsource_CONFIRM
History
- 3 Dec 2026 00:30 UTC · NVD: 1 reference added
- 2 Dec 2026 23:30 UTC · CVE List: updated (other details)
- 2 Dec 2026 19:36 UTC · NVD: first stored (published 2 Dec 2026)
- 2 Dec 2026 19:08 UTC · CVE List: first stored (published 2 Dec 2026)