CVE-2026-141547 — Pdm — CWE-15 · CWE-94
## Summary GHSA-qq6c-99pv-prvf was fixed by moving the per-project plugin library out of the project, to `<cache_dir>/plugins/<project name>-<hash>`. `cache_dir` is declared global-only, but that is checked only when a value is written. A `pdm.toml` committed to a repository (the docs recommend committing it) can still set `cache_dir`, and the plugin library path is then computed under a directory the repository controls. A repository can ship that directory with a `.pth` file, and pdm runs it at startup, before parsing arguments. In my test `pdm --version` was enough. The plugin directory name contains a hash of the absolute project path, so the repository has to guess where it will be checked out. In CI and container builds the path is usually fixed (`/app`, `/home/runner/work/<repo>/<repo>`, `/workspaces/<repo>`), and a repository can include directories for several guesses. ## Details Line numbers are for 2.29.7 (main 4d5c6216 has the same three files). - `src/pdm/project/config.py:111-115` declares `cache_dir` with `global_only=True`. The check is in `__setitem__` (`:422`); `__getitem__` (`:369-393`) returns the project file's value, and `Config.__init__` loads the project file without filtering (`:316`). - `src/pdm/project/core.py:252-256`: `Project.config` is `ChainMap(project_config, global_config)`, so the project value wins. - `src/pdm/project/core.py:121-128`: `cache_dir` is read from that config, and `project_plugins_dir` is `cache_dir / "plugins" / f"{root.n
## Summary GHSA-qq6c-99pv-prvf was fixed by moving the per-project plugin library out of the project, to `<cache_dir>/plugins/<project name>-<hash>`. `cache_dir` is declared global-only, but that is checked only when a value is written. A `pdm.toml` committed to a repository (the docs recommend committing it) can still set `cache_dir`, and the plugin library path is then computed under a directory the repository controls. A repository can ship that directory with a `.pth` file, and pdm runs it at startup, before parsing arguments. In my test `pdm --version` was enough. The plugin directory name contains a hash of the absolute project path, so the repository has to guess where it will be checked out. In CI and container builds the path is usually fixed (`/app`, `/home/runner/work/<repo>/<repo>`, `/workspaces/<repo>`), and a repository can include directories for several guesses. ## Details Line numbers are for 2.29.7 (main 4d5c6216 has the same three files). - `src/pdm/project/config.py:111-115` declares `cache_dir` with `global_only=True`. The check is in `__setitem__` (`:422`); `__getitem__` (`:369-393`) returns the project file's value, and `Config.__init__` loads the project file without filtering (`:316`). - `src/pdm/project/core.py:252-256`: `Project.config` is `ChainMap(project_config, global_config)`, so the project value wins. - `src/pdm/project/core.py:121-128`: `cache_dir` is read from that config, and `project_plugins_dir` is `cache_dir / "plugins" / f"{root.n
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
CVE-2026-141547
CVSS 7/10 · HIGH · 02.12.2026
CWE: CWE-15, CWE-94
Vector: CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎯 WHAT IS THIS VULNERABILITY?
Summary: ## Summary
GHSA-qq6c-99pv-prvf was fixed by moving the per-project plugin library out of the project, to <cache_dir>/plugins/<project name>-<hash>. cache_dir is declared global-only, but that is checked only when a value is written. A pdm.toml committed to a repository (the docs recommend committing it) can still set cache_dir, and the plugin library path is then computed under a direc…
Affected: pdm
⚡ ATTACK VECTOR
Local/physical access (AV:L) · no authentication required (PR:N) · user interaction required (UI:R).
🌍 REAL WORLD IMPACT
All confidential data readable/stealable; data can be modified or deleted; service can be completely taken down.
🛡️ REMEDIATION
→ Apply vendor security update for pdm.
→ Add WAF rule, create IDS alert for anomalous traffic.
⚠️ URGENCY
⚠️ Planned maintenance (2 weeks).
────────────────────────────────────────
[Automated Technical Vulnerability & CVSS Vector Analysis]