EnvMap GitHub

CVE-2026-141547

PDM: A project pdm.toml can still set cache_dir, which brings back project-controlled plugin code at pdm startup

EPSS 0.47%Received

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.

In the words of the organisation that published it (GitHub_M).

Severity

  • 7.0 High · CVSS 3.1 from security-advisories@github.com · CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H

Affected

  • pdm-project pdm: >= 2.27.0, < 2.29.8

as the publisher (GitHub_M) lists them.

Likelihood of exploitation

FIRST's EPSS gives a 0.47% chance of exploitation in the next 30 days, higher than 42% of all CVEs (as of 4 December 2026).

Weakness

CWE-15, CWE-94

References

Record

Published19:18 UTC, 2 December 2026
Last changed00:18 UTC, 3 December 2026
NVD statusReceived
Published byGitHub_M

CVE-2026-141547 on NVD · on CVE.org · Security Briefing

Follow it

Add the feed to a feed reader and new items arrive there as they are published, with no account here and no email.

Add to Feedly Add to Inoreader

Any other reader: paste https://envmap.tech/security/feed.xml

Where this comes from

Nothing here is written by an AI, summarised or rewritten: a headline is its newsroom's own and opens its story. A description is in the words of the organisation that published the CVE; a score says whose it is, NVD's or the publisher's; a CVE nobody has scored yet says so. A CVE that is rejected comes off every list. When a source does not answer, the page keeps the last answer it gave and says since when.

How to read it

EnvMap is a free, open-source DevOps control plane that you run yourself; its Security page brings your scanners' findings into one place. See what it does.