{"cve":"CVE-2026-47781","nvd":{"published":"2026-08-04T19:16:51.240","modified":"2026-10-24T16:10:00.153","status":"Deferred","description":"PDM is a Python package and dependency manager. In versions up to and including 2.26.9, PDM automatically loads project-local plugins from a .pdm-plugins directory during initialization, allowing an attacker-controlled file in an untrusted repository checkout to execute arbitrary Python code before any command is parsed. This happens because load_plugins() runs during Core.init() and adds .pdm-plugins via site.addsitedir(), which processes .pth files and immediately executes any line beginning with import, so the code runs with the privileges of the user invoking pdm and even a benign command such as pdm --version triggers it (making the impact strongest in CI, automation, and privileged contexts). The issue is fixed in version 2.27.0.","cvss_v4":{"vector":"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","score":8.4},"cvss_v3":null,"cwes":["CWE-94","CWE-829"],"references":["https://github.com/pdm-project/pdm/releases/tag/2.27.0","https://github.com/pdm-project/pdm/security/advisories/GHSA-qq6c-99pv-prvf","https://github.com/pdm-project/pdm/security/advisories/GHSA-qq6c-99pv-prvf"],"products":[],"source":"nvd","synced_at":"2026-10-24T16:53:34.184483516+00:00"},"epss":{"cve":"CVE-2026-47781","score":0.00187,"percentile":0.08255,"date":"2026-10-25"},"kev":null,"osv":[{"id":"GHSA-qq6c-99pv-prvf","url":"https://osv.dev/vulnerability/GHSA-qq6c-99pv-prvf","summary":"PDM: Project-Controlled `.pdm-plugins` Content Executes Before CLI Parsing","modified":"2026-07-13T16:42:59.452875804Z","packages":[{"ecosystem":"PyPI","name":"pdm","purl":"pkg:pypi/pdm","ranges":["<2.27.0"],"fixed":["2.27.0"]}]},{"id":"PYSEC-2026-2863","url":"https://osv.dev/vulnerability/PYSEC-2026-2863","summary":"PDM: Project-Controlled `.pdm-plugins` Content Executes Before CLI Parsing","modified":"2026-07-13T16:32:55.809295075Z","packages":[{"ecosystem":"PyPI","name":"pdm","purl":"pkg:pypi/pdm","ranges":["<2.27.0"],"fixed":["2.27.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}