go-git projectのgo-gitにおける複数の脆弱性
タイトル go-git projectのgo-gitにおける複数の脆弱性
概要

go-gitは純粋なGoで書かれた拡張可能なgit実装ライブラリです。5.19.0および6.0.0-alpha.3より前のバージョンでは、go-gitは上流のGitとは異なる方法で不正なGitオブジェクトを解析する可能性があります。コミットまたはタグオブジェクトに曖昧または不正なヘッダーが含まれている場合、go-gitのデコードされた表現はGit自体が同じオブジェクトを解釈または拒否する方法と異なって値を露出することがあります。さらに、go-gitのコミット署名および検証ロジックは、元の生オブジェクトのバイト列ではなく、go-gitの解析された表現から再構築されたコミットデータに基づいて動作します。その結果、go-gitはリポジトリに保存されているオブジェクトとバイト単位で等価でないコミットペイロードに署名または検証を行う可能性があります。これにより、表示されるメタデータや実際のメタデータが署名対象のオブジェクトと異なるコミットの署名が有効であるように見えることがあります。この脆弱性は5.19.0および6.0.0-alpha.3で修正されています。

想定される影響 ・当該ソフトウェアが扱う情報について、外部への漏えいは発生しません。 ・当該ソフトウェアが扱う全ての情報が書き換えられる可能性があります。 ・当該ソフトウェアは停止しません。 
対策

ベンダ情報を参照して適切な対策を実施してください。

公表日 2026年5月27日0:00
登録日 2026年6月8日11:46
最終更新日 2026年6月8日11:46
CVSS3.0 : 重要
スコア 7.5
ベクター CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
影響を受けるシステム
go-git project
go-git 5.19.0 未満
go-git 6.0.0
CVE (情報セキュリティ 共通脆弱性識別子)
CWE (共通脆弱性タイプ一覧)
ベンダー情報
変更履歴
No 変更内容 変更日
1 [2026年06月08日]
  掲載
2026年6月8日11:46

NVD脆弱性情報
CVE-2026-45022
概要

go-git is an extensible git implementation library written in pure Go. Prior to 5.19.0 and 6.0.0-alpha.3, go-git may parse malformed Git objects in a way that differs from upstream Git. When commit or tag objects contain ambiguous or malformed headers, go-git’s decoded representation may expose values differently from how Git itself would interpret or reject the same object. Additionally, go-git’s commit signing and verification logic operates over commit data reconstructed from go-git’s parsed representation rather than the original raw object bytes. As a result, go-git may sign or verify a commit payload that is not byte-for-byte equivalent to the object stored in the repository. This can cause a signature to appear valid for a commit whose displayed or effective metadata differs from the object that was intended to be signed. This vulnerability is fixed in 5.19.0 and 6.0.0-alpha.3.

公表日 2026年5月28日0:16
登録日 2026年5月28日4:14
最終更新日 2026年5月30日0:42
関連情報、対策とツール
共通脆弱性一覧