HIGH · CVSS 7 Published: 2026-12-02

CVE-2026-141547 — Technical Security Advisory & CVSS Profile

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.

Technical Metadata

IdentifierCVE-2026-141547
Base Severity / ScoreHIGH (7 / 10.0)
CVSS VectorCVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
Weakness ClassificationCWE-15
Archive CategoriesHIGH Advisories · 2026 Index

Operational Mitigation Guidance

Prioritize remediation in the next maintenance cycle. Validate affected dependency versions in SBOM manifests and review inbound access controls. For architectural isolation principles, review per-process namespace isolation.

Upstream References

Related Security Advisories

Recently updated entries: advisory/CVE-2025-3254 · advisory/CVE-2025-32434 · advisory/CVE-2025-32350