{"id":"CVE-2026-141547","sourceIdentifier":"security-advisories@github.com","published":"2026-12-02T19:18:01.557","lastModified":"2026-12-03T00:18:05.123","vulnStatus":"Received","cveTags":[],"descriptions":[{"lang":"en","value":"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."}],"affected":[{"source":"security-advisories@github.com","affectedData":[{"vendor":"pdm-project","product":"pdm","versions":[{"version":">= 2.27.0, < 2.29.8","status":"affected"}]}]}],"metrics":{"cvssMetricV31":[{"source":"security-advisories@github.com","type":"Secondary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","baseScore":7.0,"baseSeverity":"HIGH","attackVector":"LOCAL","attackComplexity":"HIGH","privilegesRequired":"NONE","userInteraction":"REQUIRED","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"},"exploitabilityScore":1.0,"impactScore":5.9}],"ssvcV203":[{"source":"134c704f-9b21-4f2e-91b3-4a467353bcc0","ssvcData":{"timestamp":"2026-12-02T23:06:33.435906Z","id":"CVE-2026-141547","options":[{"exploitation":"poc"},{"automatable":"no"},{"technicalImpact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}]},"weaknesses":[{"source":"security-advisories@github.com","type":"Secondary","description":[{"lang":"en","value":"CWE-15"},{"lang":"en","value":"CWE-94"}]}],"references":[{"url":"https://github.com/pdm-project/pdm/commit/8cfea30571b0694dacbc7c5e4459527f83a4c4cc","source":"security-advisories@github.com"},{"url":"https://github.com/pdm-project/pdm/releases/tag/2.29.8","source":"security-advisories@github.com"},{"url":"https://github.com/pdm-project/pdm/security/advisories/GHSA-fv38-chg5-6pg2","source":"security-advisories@github.com"},{"url":"https://github.com/pdm-project/pdm/security/advisories/GHSA-fv38-chg5-6pg2","source":"134c704f-9b21-4f2e-91b3-4a467353bcc0"}]}