| タイトル | GitHubのcliにおけるエスケープ、メタ、またはコントロールシーケンスの不適切な無効化に関する脆弱性 |
|---|---|
| 概要 | `gh`はGitHubの公式コマンドラインツールです。バージョン1.6.0から2.92.0未満にかけて、GitHub CLIにセキュリティ上の脆弱性が確認されており、ユーザーが`gh run view --log`または`gh run view --log-failed`を使ってGitHub Actionsのワークフローログを表示する際にターミナルのエスケープシーケンス注入が発生する可能性があります。この脆弱性はGitHub CLIがActionsの生ログ出力を処理する方法に起因しています。`gh run view --log`および`gh run view --log-failed`コマンドは、ワークフローログの行を標準出力または設定されたペイジャーに対して端末制御シーケンスを無効化せずにストリーミングします。攻撃者がPRをトリガーとするワークフローなどを通じてGitHub Actionsのログ内容に影響を与えることができれば、エスケープシーケンスを埋め込み、ユーザーがその実行内容を確認する際にターミナルで再生されます。被害者のターミナルエミュレーターによっては、注入されたシーケンスがウィンドウタイトルを変更したり、画面の内容を操作したり、ある種のターミナルエミュレーター(例えばscreenなど)では任意のコマンドを実行させる可能性があります。この脆弱性はバージョン2.92.0で修正されました。 |
| 想定される影響 | 当該ソフトウェアが扱う情報について、外部への漏えいは発生しません。 また、当該ソフトウェアが扱う情報の一部が書き換えられる可能性があります。 さらに、当該ソフトウェアは停止しません。 そして、この脆弱性を悪用した攻撃の影響は、他のソフトウェアには及びません。 |
| 対策 | 正式な対策が公開されています。ベンダ情報を参照して適切な対策を実施してください。 |
| 公表日 | 2026年5月15日0:00 |
| 登録日 | 2026年5月25日10:19 |
| 最終更新日 | 2026年5月25日10:19 |
| CVSS3.0 : 低 | |
| スコア | 3.5 |
|---|---|
| ベクター | CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:N |
| GitHub |
| cli 1.6.0 以上 2.92.0 未満 |
| No | 変更内容 | 変更日 |
|---|---|---|
| 1 | [2026年05月25日] 掲載 |
2026年5月25日10:19 |
| 概要 | `gh` is GitHub’s official command line tool. From 1.6.0 to before 2.92.0, a security vulnerability has been identified in GitHub CLI that could allow terminal escape sequence injection when users view GitHub Actions workflow logs using gh run view --log or gh run view --log-failed. The vulnerability stems from the way GitHub CLI handles raw Actions log output. The gh run view --log and gh run view --log-failed commands stream workflow log lines to stdout or the configured pager without sanitizing terminal control sequences. An attacker who can influence GitHub Actions log content, for example via a PR triggered workflow, can embed escape sequences that are replayed in the user's terminal when they inspect the run. Depending on the victim's terminal emulator, injected sequences could change the window title, manipulate on screen content, or in some terminal emulators (such as screen) potentially execute arbitrary commands. This vulnerability is fixed in 2.92.0. |
|---|---|
| 公表日 | 2026年5月16日1:16 |
| 登録日 | 2026年5月17日4:12 |
| 最終更新日 | 2026年5月22日8:47 |
| 構成1 | 以上 | 以下 | より上 | 未満 | |
| cpe:2.3:a:github:cli:*:*:*:*:*:*:*:* | 1.6.0 | 2.92.0 | |||