本文へ移動
English version →
高 7.0

PDMにリポジトリの設定で任意のPythonコードを実行される脆弱性

CVE-2026-141547 SecPulse初出

概要

PDMの2.27.0から2.29.7までの版では、リポジトリ内のpdm.tomlでcache_dirを上書きでき、PDMの起動時に悪意あるコードが実行されるおそれがあります。pdm --versionなどの実行でも影響するとされ、修正版の2.29.8で対応しています。2.29.8以上へ更新してください。

AI要約

SecPulse が外部の生成 AI を使って作った要約です。誤りを含むことがあります。重要な判断の前に、下の原文と参照URLを確認してください。

PDMの2.27.0から2.29.7までの版では、リポジトリ内のpdm.tomlでcache_dirを上書きでき、PDMの起動時に悪意あるコードが実行されるおそれがあります。pdm --versionなどの実行でも影響するとされ、修正版の2.29.8で対応しています。2.29.8以上へ更新してください。

原文の説明 取得元が公開している説明をそのまま載せています (多くは英語)。

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.

出典: CVE.org (CVE Program・cvelistV5) NVD

参照URL

当サイトでは、アクセス解析と広告の効果測定のためにCookieを使います。株式会社Gameのサイト共通の設定です。 詳しく