{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-141547",
        "assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
        "state": "PUBLISHED",
        "assignerShortName": "GitHub_M",
        "dateReserved": "2026-12-01T21:16:36.622Z",
        "datePublished": "2026-12-02T18:58:22.343Z",
        "dateUpdated": "2026-12-02T23:06:59.190Z"
    },
    "containers": {
        "cna": {
            "title": "PDM: A project pdm.toml can still set cache_dir, which brings back project-controlled plugin code at pdm startup",
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "cweId": "CWE-15",
                            "lang": "en",
                            "description": "CWE-15: External Control of System or Configuration Setting",
                            "type": "CWE"
                        }
                    ]
                },
                {
                    "descriptions": [
                        {
                            "cweId": "CWE-94",
                            "lang": "en",
                            "description": "CWE-94: Improper Control of Generation of Code",
                            "type": "CWE"
                        }
                    ]
                }
            ],
            "metrics": [
                {
                    "cvssV3_1": {
                        "attackComplexity": "HIGH",
                        "attackVector": "LOCAL",
                        "availabilityImpact": "HIGH",
                        "baseScore": 7,
                        "baseSeverity": "HIGH",
                        "confidentialityImpact": "HIGH",
                        "integrityImpact": "HIGH",
                        "privilegesRequired": "NONE",
                        "scope": "UNCHANGED",
                        "userInteraction": "REQUIRED",
                        "vectorString": "CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H",
                        "version": "3.1"
                    }
                }
            ],
            "references": [
                {
                    "name": "https://github.com/pdm-project/pdm/security/advisories/GHSA-fv38-chg5-6pg2",
                    "tags": [
                        "x_refsource_CONFIRM"
                    ],
                    "url": "https://github.com/pdm-project/pdm/security/advisories/GHSA-fv38-chg5-6pg2"
                },
                {
                    "name": "https://github.com/pdm-project/pdm/commit/8cfea30571b0694dacbc7c5e4459527f83a4c4cc",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/pdm-project/pdm/commit/8cfea30571b0694dacbc7c5e4459527f83a4c4cc"
                },
                {
                    "name": "https://github.com/pdm-project/pdm/releases/tag/2.29.8",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/pdm-project/pdm/releases/tag/2.29.8"
                }
            ],
            "affected": [
                {
                    "vendor": "pdm-project",
                    "product": "pdm",
                    "versions": [
                        {
                            "version": ">= 2.27.0, < 2.29.8",
                            "status": "affected"
                        }
                    ]
                }
            ],
            "providerMetadata": {
                "orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
                "shortName": "GitHub_M",
                "dateUpdated": "2026-12-02T18:58:22.343Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "PDM is a Python package and dependency manager. From 2.27.0 until 2.29.8, a repository-controlled pdm.toml can override the global_only setting cache_dir because src/pdm/project/config.py enforces the restriction on writes but not when project configuration is read. In src/pdm/project/core.py, Project.config gives the project value precedence and project_plugins_dir is computed beneath the resulting cache directory. During Core.__init__ in src/pdm/core.py, load_plugins calls site.addsitedir on that directory's site-packages, processing executable .pth import lines before argument parsing. A malicious checkout can therefore execute Python code as the invoking user when PDM runs, including for pdm --version, if the prepared plugin directory matches the checkout path and Python version and PDM_CACHE_DIR is not set. This bypasses the earlier relocation of project plugins out of the checkout for CVE-2026-47781. This issue is fixed in version 2.29.8."
                }
            ],
            "source": {
                "advisory": "GHSA-fv38-chg5-6pg2",
                "discovery": "UNKNOWN"
            }
        },
        "adp": [
            {
                "references": [
                    {
                        "url": "https://github.com/pdm-project/pdm/security/advisories/GHSA-fv38-chg5-6pg2",
                        "tags": [
                            "exploit"
                        ]
                    }
                ],
                "metrics": [
                    {
                        "other": {
                            "type": "ssvc",
                            "content": {
                                "timestamp": "2026-12-02T23:06:33.435906Z",
                                "id": "CVE-2026-141547",
                                "options": [
                                    {
                                        "Exploitation": "poc"
                                    },
                                    {
                                        "Automatable": "no"
                                    },
                                    {
                                        "Technical Impact": "total"
                                    }
                                ],
                                "role": "CISA Coordinator",
                                "version": "2.0.3"
                            }
                        }
                    }
                ],
                "title": "CISA ADP Vulnrichment",
                "providerMetadata": {
                    "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
                    "shortName": "CISA-ADP",
                    "dateUpdated": "2026-12-02T23:06:59.190Z"
                }
            }
        ]
    }
}