Dulwichの脆弱性により、コミットの解釈差を悪用され未確認のコードを実行される恐れ
概要
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 |
1.2.20 |
ディストリビューション別の修正状況
各ディストリビューションが公開している、この CVE の記録です。修正版は配布版ごとに違うので、リンク先で確かめてください。
- Debian DEBIAN-CVE-2026-122299 dulwich この記録に修正版の記載なし
- Ubuntu UBUNTU-CVE-2026-122299 dulwich この記録に修正版の記載なし
原文の説明 取得元が公開している説明をそのまま載せています (多くは英語)。
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
- advisory vulncheck.com
- advisory nvd.nist.gov
- advisory github.com
- package github.com
- patch github.com
- patch github.com
- REDHAT Red Hat
- web github.com