CVE-2026-144576: PDM through 2.29.8 Code Execution via Project-Controlled .pdm-python File
PDM through 2.29.8 contains a code execution vulnerability that allows malicious repositories to run scripts by shipping a .pdm-python file pointing to an executable. When a user runs commands like pdm list or pdm info, PDM probes the path as an interpreter, executing the attacker's script with user privileges.
Affected Software
Event History
Frequently Asked Questions
What must an attacker do to trigger this issue?
The attacker must provide a repository containing a .pdm-python file that points to an attacker-controlled executable. A user must then run a PDM command that probes the project interpreter, such as pdm list or pdm info.
Who is exposed to exploitation?
Users who run affected PDM versions against repositories they do not fully trust are exposed. The attacker-controlled script runs with the privileges of the user invoking PDM.
How can I check a repository for the dangerous condition?
Inspect the repository for a .pdm-python file and determine whether it points to an executable controlled by the repository or otherwise untrusted. Treat such a project as unsafe to probe with affected PDM versions.
What can be done before an update is available?
Do not run PDM commands that probe interpreter configuration, including pdm list and pdm info, in untrusted repositories containing a .pdm-python file. Review or remove untrusted .pdm-python files before invoking PDM.