CVE-2026-47781
published high CVSS 4.0 · 8.4pdm: Project-Controlled `.pdm-plugins` Content Executes Before CLI Parsing
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| pdm-project | — | pdm< 2.27.0 | Affected | Not stated | GitHub_M |
| SUSE / openSUSE | openSUSE-Leap-16.0 | python313-pdmnoarch | Advisory build | 2.22.3-bp160.2.1 | OPENSUSE-SU-2026:21161-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-pdmaarch64 | Advisory build | 2.28.0-1.1 | OPENSUSE-SU-2026:11124-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-pdmppc64le | Advisory build | 2.28.0-1.1 | OPENSUSE-SU-2026:11124-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-pdms390x | Advisory build | 2.28.0-1.1 | OPENSUSE-SU-2026:11124-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-pdmx86_64 | Advisory build | 2.28.0-1.1 | OPENSUSE-SU-2026:11124-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-pdmaarch64 | Advisory build | 2.28.0-1.1 | OPENSUSE-SU-2026:11124-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-pdmppc64le | Advisory build | 2.28.0-1.1 | OPENSUSE-SU-2026:11124-1 |
Show 6 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-pdms390x | Advisory build | 2.28.0-1.1 | OPENSUSE-SU-2026:11124-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-pdmx86_64 | Advisory build | 2.28.0-1.1 | OPENSUSE-SU-2026:11124-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-pdmaarch64 | Advisory build | 2.28.0-1.1 | OPENSUSE-SU-2026:11124-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-pdmppc64le | Advisory build | 2.28.0-1.1 | OPENSUSE-SU-2026:11124-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-pdms390x | Advisory build | 2.28.0-1.1 | OPENSUSE-SU-2026:11124-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-pdmx86_64 | Advisory build | 2.28.0-1.1 | OPENSUSE-SU-2026:11124-1 |
Description
PDM is a Python package and dependency manager. In versions up to and including 2.26.9, PDM automatically loads project-local plugins from a .pdm-plugins directory during initialization, allowing an attacker-controlled file in an untrusted repository checkout to execute arbitrary Python code before any command is parsed. This happens because load_plugins() runs during Core.init() and adds .pdm-plugins via site.addsitedir(), which processes .pth files and immediately executes any line beginning with import, so the code runs with the privileges of the user invoking pdm and even a benign command such as pdm --version triggers it (making the impact strongest in CI, automation, and privileged contexts). The issue is fixed in version 2.27.0.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 8.4 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| pdm-project | pdm | < 2.27.0 (affected) | GitHub_M · cna |
Weaknesses
2- CWE-829 CWE-829: Inclusion of Functionality from Untrusted Control Sphere
- CWE-94 CWE-94: Improper Control of Generation of Code ('Code Injection')
References
2Provider assertions
2GitHub_M · cna
pdm: Project-Controlled `.pdm-plugins` Content Executes Before CLI Parsing
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 2f8d6f75586915de0954dcfdd01fb82b287331c09b4ebfef65fd53cbe33695d2
- Ingested
- 23 Sep 2026, 09:16:58 UTC
- Source record
- Official CVE record