Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-47781: CWE-829: Inclusion of Functionality from Untrusted Control Sphere in pdm-project pdm

0
High
VulnerabilityCVE-2026-47781cvecve-2026-47781cwe-829cwe-94
Published: 08/04/2026 (08/04/2026, 18:42:23 UTC)
Source: CVE Database V5
Vendor/Project: pdm-project
Product: pdm

Description

PDM, a Python package and dependency manager, has a vulnerability in versions up to and including 2.26.9 where it automatically loads project-local plugins from a .pdm-plugins directory during initialization. This allows an attacker-controlled file in an untrusted repository to execute arbitrary Python code with the privileges of the user running PDM. The vulnerability is triggered even by benign commands such as 'pdm --version'. The issue is fixed in version 2.27.0.

CVSS v4.0

Score 8.4high

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Active
Vuln. Confidentiality
High
Vuln. Integrity
High
Vuln. Availability
High
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Affected software

pdm
pkg:pypi/pdm
Affected versions
<=2.26.9

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/04/2026, 19:11:43 UTC

Technical Analysis

CVE-2026-47781 describes a code execution vulnerability in pdm-project's PDM tool. Versions up to and including 2.26.9 automatically load plugins from a .pdm-plugins directory during Core.init(), using site.addsitedir() which processes .pth files and executes import statements immediately. This behavior allows an attacker who can place files in an untrusted repository checkout to execute arbitrary Python code before any command parsing, running with the user's privileges. The vulnerability is particularly impactful in CI, automation, and privileged contexts. The flaw is resolved in version 2.27.0.

Potential Impact

An attacker able to place malicious files in a repository checked out by PDM can achieve arbitrary code execution with the privileges of the user running PDM. This can occur even when running non-malicious commands such as 'pdm --version', increasing risk in automated or privileged environments.

Mitigation Recommendations

Upgrade to PDM version 2.27.0 or later, where this vulnerability is fixed. Until upgrading, avoid running PDM commands in untrusted repository checkouts or environments where untrusted .pdm-plugins directories may exist.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-05-19T22:36:16.883Z
Cvss Version
4.0
State
PUBLISHED
Remediation Level
null

Threat ID: 6a7237f0bf8831d539488332

Added to database: 08/04/2026, 19:05:20 UTC

Last enriched: 08/04/2026, 19:11:43 UTC

Last updated: 08/04/2026, 19:44:55 UTC

Views: 5

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses