go-git projectのgo-gitにおけるエンコードおよびエスケープに関する脆弱性
| Title |
go-git projectのgo-gitにおけるエンコードおよびエスケープに関する脆弱性
|
| Summary |
go-gitは純粋なGoで書かれた拡張可能なgit実装ライブラリです。5.19.1および6.0.0-alpha.4より前のバージョンでは、go-gitのSSHトランスポートはリモートのexecコマンドをリポジトリパスを単一引用符で囲む形で構築していましたが、パス内に埋め込まれた単一引用符をエスケープしていませんでした。そのため、単一引用符を含むリポジトリパスはexecコマンド内の引用符で囲まれた領域から抜け出し、追加のシェルトークンとして解釈される可能性がありました。この脆弱性は5.19.1および6.0.0-alpha.4で修正されています。
|
| Possible impacts |
・当該ソフトウェアが扱う全ての情報が外部に漏れる可能性があります。 ・当該ソフトウェアが扱う全ての情報が書き換えられる可能性があります。 ・当該ソフトウェアが完全に停止する可能性があります。 |
| Solution |
ベンダ情報を参照して適切な対策を実施してください。 |
| Publication Date |
May 27, 2026, midnight |
| Registration Date |
June 8, 2026, 11:46 a.m. |
| Last Update |
June 8, 2026, 11:46 a.m. |
|
CVSS3.0 : 緊急
|
| Score |
9.6
|
| Vector |
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H |
Affected System
| go-git project |
|
go-git 5.19.1 未満
|
|
go-git 6.0.0
|
CVE (情報セキュリティ 共通脆弱性識別子)
CWE (共通脆弱性タイプ一覧)
ベンダー情報
Change Log
| No |
Changed Details |
Date of change |
| 1 |
[2026年06月08日] 掲載 |
June 8, 2026, 11:46 a.m. |
NVD Vulnerability Information
CVE-2026-45570
| Summary |
go-git is an extensible git implementation library written in pure Go. Prior to 5.19.1 and 6.0.0-alpha.4, go-git's SSH transport constructs the remote exec command by wrapping the repository path in single quotes without escaping single quotes embedded inside the path. A repository path containing a single quote can therefore break out of the quoted region in the exec command and be appended as additional shell tokens. This vulnerability is fixed in 5.19.1 and 6.0.0-alpha.4.
|
| Publication Date |
May 28, 2026, 12:16 a.m. |
| Registration Date |
May 28, 2026, 4:14 a.m. |
| Last Update |
May 30, 2026, 12:42 a.m. |
Related information, measures and tools
Common Vulnerabilities List