本文へ移動
English version →
高 8.8

Dulwichの脆弱性により、コミットの解釈差を悪用され未確認のコードを実行される恐れ

CVE-2026-122299 SecPulse初出

概要

Dulwichの1.2.20より前のバージョンには、ツリーヘッダーが重複したコミットを読み込む際、Gitと異なる方のヘッダーを採用してしまう脆弱性があります。Poetry 2.5.1に同梱されるDulwichも影響を受け、インストールやビルドの際に、確認されていない悪意のあるスクリプトが実行されるおそれがあります。修正版の1.2.20が公開されているため、Dulwichを1.2.20以降に更新してください。

AI要約

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

Dulwichの1.2.20より前のバージョンには、ツリーヘッダーが重複したコミットを読み込む際、Gitと異なる方のヘッダーを採用してしまう脆弱性があります。Poetry 2.5.1に同梱されるDulwichも影響を受け、インストールやビルドの際に、確認されていない悪意のあるスクリプトが実行されるおそれがあります。修正版の1.2.20が公開されているため、Dulwichを1.2.20以降に更新してください。

影響パッケージ

パッケージ影響を受ける版 → 修正版
jelmerdulwich
1.2.20 未満→ 1.2.20

ディストリビューション別の修正状況

各ディストリビューションが公開している、この CVE の記録です。修正版は配布版ごとに違うので、リンク先で確かめてください。

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

Dulwich before 1.2.20 contains a commit object parsing vulnerability where the read path in _parse_commit resolves a duplicate tree header to the last occurrence instead of the first, diverging from core git's resolution behavior, while Poetry 2.5.1 ships this version and uses dulwich by default for git dependency installation. Attackers can craft a commit object with two tree headers so that reviewers and CI using git see a benign tree while Poetry's dulwich-based checkout resolves to a different attacker-controlled tree containing malicious build scripts such as setup.py, resulting in unreviewed code execution on the install or build host.

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

参照URL

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