CVE-2026-47781 Details
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.
A vulnerability in PDM, a Python package and dependency manager, allows for arbitrary code execution through project-local plugins. This issue affects PDM versions 2.26.9 and prior. The vulnerability arises because PDM automatically loads plugins from a '.pdm-plugins' directory during initialization. When a file in this directory is controlled by an attacker and resides in an untrusted repository checkout, it can execute Python code before any command is processed. The exploitation occurs with the same privileges as the user running PDM, and even a harmless command like 'pdm --version' can trigger the issue. The impact is particularly severe in continuous integration (CI) environments, automated processes, and contexts with elevated privileges.
Users should update PDM to version 2.27.0, where this vulnerability has been fixed. Instructions for downloading PDM can be found on the PDM GitHub releases page.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Aug 4, 2026CISA-ADP
Assessed Aug 5, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/pdm-project/pdm/security/advisories/GHSA-qq6c-99pv-prvf | CISA-ADP | AdvisoryExploitRemedyVendor |
| https://github.com/pdm-project/pdm/releases/tag/2.27.0 | [email protected] | Release NotesVendor |
| https://github.com/pdm-project/pdm/security/advisories/GHSA-qq6c-99pv-prvf | [email protected] | AdvisoryExploitRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-829 | Inclusion of Functionality from Untrusted Control Sphere | [email protected] |
| CWE-94 | Improper Control of Generation of Code ('Code Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| PDM | <= 2.26.9 (semver) |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 24, 2026 | CVE Translated | [email protected] |
| Oct 23, 2026 | CVE Translated | [email protected] |
| Aug 5, 2026 | CVE Modified | CISA-ADP |
| Aug 4, 2026 | New CVE Received | [email protected] |
Volerion