Arbitrary Code Execution in PDM Python Package Manager
CVE-2026-47781
8.4HIGH
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
