GitHubのcliにおける不正な認証に関する脆弱性
タイトル GitHubのcliにおける不正な認証に関する脆弱性
概要

GitHub CLI(gh)はGitHubの公式コマンドラインツールです。バージョン2.93.0以前では、gh attestation、gh release verify、およびgh release verify-assetコマンドを介してTUFリポジトリミラーへのAPIリクエストに誤って認証ヘッダーが含まれていました。このCLIは認証層を持つ共有HTTPクライアントを使用しており、トークンを自動的に送信リクエストに添付します。この層は正確なホスト検出ができず、ターゲットホストを誤って判別し、本来付与されるべきでないトークンを渡してしまいます。具体的には、ホスト正規化ロジックが*.github.comのサブドメインをすべてgithub.comに統合してしまうため、tuf-repo.github.com(GitHub APIエンドポイントではなくGitHub Pagesサイト)へのリクエストがgithub.comへのリクエストとして扱われ、ユーザーのgithub.comトークンが渡されてしまいます。github.comまたは既知のGHESインスタンスと一致しないホストに対しては、設定されていればGH_ENTERPRISE_TOKENが使用されます。gh attestation、gh release verify、gh release verify-assetコマンドは通常の動作の一部として複数の外部ホスト(tuf-repo.github.comやtuf-repo-cdn.sigstore.devからのTUFメタデータ、Azure Blob Storageからのアーティファクトバンドル)からデータを取得します。これらのリクエストは同じ認証済みHTTPクライアントを通過するため、トークンがすべてに送信されてしまいます。この脆弱性はバージョン2.93.0で修正されました。

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

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

公表日 2026年5月29日0:00
登録日 2026年6月5日10:45
最終更新日 2026年6月5日10:45
CVSS3.0 : 緊急
スコア 9.1
ベクター CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
影響を受けるシステム
GitHub
cli 2.93.0 未満
CVE (情報セキュリティ 共通脆弱性識別子)
CWE (共通脆弱性タイプ一覧)
ベンダー情報
変更履歴
No 変更内容 変更日
1 [2026年06月05日]
  掲載
2026年6月5日10:45

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

GitHub CLI (gh) is GitHub’s official command line tool. Prior to 2.93.0, GitHub CLI incorrectly includes authorization header in API requests to TUF repository mirrors via gh attestation, gh release verify, and gh release verify-asset commands. The CLI uses a shared HTTP client with an authentication layer that automatically attaches tokens to outgoing requests. This layer lacks accurate host detection and can incorrectly attribute the target host, providing it with a token it should never receive. Specifically, the host normalization logic collapses any *.github.com subdomain to github.com, so a request to tuf-repo.github.com (a GitHub Pages site, not a GitHub API endpoint) is treated as a request to github.com and receives the user's github.com token. For hosts that don't match github.com or a known GHES instance at all, the resolver falls back to GH_ENTERPRISE_TOKEN if set. The gh attestation, gh release verify and gh release verify-asset commands fetch data from several external hosts as part of their normal operation (TUF metadata from tuf-repo.github.com and tuf-repo-cdn.sigstore.dev, artifact bundles from Azure Blob Storage). Because these requests go through the same authenticated HTTP client, the token is sent to all of them. This vulnerability is fixed in 2.93.0.

公表日 2026年5月30日1:16
登録日 2026年5月30日4:15
最終更新日 2026年6月4日6:06
影響を受けるソフトウェアの構成
構成1 以上 以下 より上 未満
cpe:2.3:a:github:cli:*:*:*:*:*:*:*:* 2.93.0
関連情報、対策とツール
共通脆弱性一覧