{"affected":[{"product":"pdm","source":"CNA: GitHub_M","vendor":"pdm-project","versions":[{"status":"affected","version":">= 2.27.0, < 2.29.8"}]}],"cveId":"CVE-2026-141547","cwes":["CWE-15","CWE-94"],"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.","epss":null,"exploits":[],"kev":null,"metrics":[{"score":7,"severity":"high","source":"CNA: GitHub_M","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","version":"3.1"}],"modifiedAt":1796237902343,"publishedAt":1796237902343,"references":[{"source":"CNA: GitHub_M","tags":["x_refsource_CONFIRM"],"url":"https://github.com/pdm-project/pdm/security/advisories/GHSA-fv38-chg5-6pg2"},{"source":"CNA: GitHub_M","tags":["x_refsource_MISC"],"url":"https://github.com/pdm-project/pdm/commit/8cfea30571b0694dacbc7c5e4459527f83a4c4cc"},{"source":"CNA: GitHub_M","tags":["x_refsource_MISC"],"url":"https://github.com/pdm-project/pdm/releases/tag/2.29.8"}],"remediation":[],"revision":"ef314a91010506b8b9c018f21420abd2f716ece2e588e62d8ceef61ba057582d","sources":[{"modifiedAt":1796237902343,"name":"CNA: GitHub_M","retrievedAt":1796238574676,"url":"https://www.cve.org/CVERecord?id=CVE-2026-141547"}],"ssvc":null,"status":"published","title":"PDM: A project pdm.toml can still set cache_dir, which brings back project-controlled plugin code at pdm startup","updatedAt":1796238574676}