CVE-2026-47781
PDM Project · PDM
PDM is vulnerable to code injection and inclusion of functionality from untrusted control spheres, potentially allowing arbitrary code execution.
Executive summary
The PDM Python package manager contains a high-severity vulnerability that could allow an attacker to execute arbitrary code on the host system.
Vulnerability
This vulnerability involves improper control over code generation and the inclusion of functionality from untrusted control spheres (CWE-829, CWE-94). The attack vector requires user interaction and is triggered locally, though it results in high impacts to confidentiality, integrity, and availability.
Business impact
Successful exploitation of this vulnerability could lead to a complete compromise of the local development environment or build pipeline. Given the CVSS score of 8.4, the risk to organizational systems is significant, as attackers could potentially inject malicious dependencies or execute arbitrary commands during the package management process.
Remediation
Immediate Action: Update the PDM package to version 2.27.0 or later immediately to incorporate the upstream fix.
Proactive Monitoring: Audit build logs and package installation history for any unexpected network connections or unauthorized file modifications initiated by the PDM process.
Compensating Controls: Restrict PDM execution to isolated, non-privileged containers or virtualized environments to limit the blast radius of a potential code injection attack.
Exploitation status
Public Exploit Available: Unknown.
Analyst recommendation
The severity of this vulnerability necessitates immediate action, particularly for teams utilizing PDM in automated CI/CD pipelines. Organizations should prioritize updating to version 2.27.0 to eliminate the risk of arbitrary code injection within their development workflows.