Arbitrary Code Execution in PDM Python Package Manager
CVE-2026-47781

8.4HIGH

Key Information:

Status
Vendor
CVE Published:
4 August 2026

What is CVE-2026-47781?

PDM, a popular Python package and dependency manager, contains a vulnerability that enables arbitrary code execution through project-local plugins. In affected versions up to 2.26.9, PDM automatically loads these plugins from the .pdm-plugins directory during the initialization phase, which can lead to malicious Python code being executed if an attacker compromises an untrusted repository. This vulnerability primarily impacts environments with continuous integration and automation, as even non-malicious commands can trigger the execution of this code, running it with the privileges of the user invoking PDM. The issue was resolved in version 2.27.0, emphasizing the importance of timely updates to mitigate potential risks.

Affected Version(s)

pdm < 2.27.0

References

CVSS V4

Score:
8.4
Severity:
HIGH
Confidentiality:
High
Integrity:
High
Availability:
High
Attack Vector:
Local
Attack Complexity:
Low
Attack Required:
None
Privileges Required:
Undefined
User Interaction:
Unknown

Timeline

  • Vulnerability published

  • Vulnerability Reserved

.