Skip to content

CVE-2026-48501 GitHub CLI tokens leak via `gh attestation` commands

CriticalCVSS 9.1 EPSS 0.29%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: total
Technology
DebianRed Hat

Description

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.

Upgrade path

8 packages: 1 fixed, 1 partially fixed, 5 with no fix yet.

PackageAffectedFixed inStatus
debian/gh(Debian 12) = 2.23.0+dfsg1-1; = 2.24.3+dfsg1-1; = 2.27.0+dfsg1-1; = 2.30.0-1 +13 more No fix listed No fix yet
debian/gh(Debian 13) = 2.46.0-3; = 2.46.0-4; All versions No fix listed No fix yet
redhat/openshift-gitops-1/argocd-rhel8(Red Hat openshift_gitops 1) All versions No fix listed No fix yet
redhat/openshift-gitops-1/argocd-rhel9(Red Hat openshift_gitops 1) All versions No fix listed No fix yet
redhat/rhoso-operators/openstack-operator-bundle(Red Hat openstack 18.0) All versions No fix listed No fix yet
cli github.com/cli/cli(Go) < 2.93.0; <= 2.92.0; All versions 2.93.0 Partially fixed
GitHub cli < 2.93.0 2.93.0 Fixed
cli github.com/cli/cli = < 2.93.0 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
cli github.com/cli/cli = < 2.93.0 No fix listed
debian/gh(Debian:12) All versions No fix listed
debian/gh(Debian:13) All versions No fix listed
cli github.com/cli/cli(Go) < 2.93.0 2.93.0
cli github.com/cli/cli(Go) All versions No fix listed
redhat/openshift-gitops-1/argocd-rhel8(Red Hat:openshift_gitops:1) All versions No fix listed
redhat/openshift-gitops-1/argocd-rhel9(Red Hat:openshift_gitops:1) All versions No fix listed
redhat/rhoso-operators/openstack-operator-bundle(Red Hat:openstack:18.0) All versions No fix listed
cli github.com/cli/cli(Go) <= 2.92.0 No fix listed
debian/gh(Debian:12) = 2.23.0+dfsg1-1 No fix listed
debian/gh(Debian:12) = 2.24.3+dfsg1-1 No fix listed
debian/gh(Debian:12) = 2.27.0+dfsg1-1 No fix listed
debian/gh(Debian:12) = 2.30.0-1 No fix listed
debian/gh(Debian:12) = 2.30.0-2 No fix listed
debian/gh(Debian:12) = 2.35.0-1 No fix listed
debian/gh(Debian:12) = 2.40.1+dfsg1-1 No fix listed
debian/gh(Debian:12) = 2.42.1-1 No fix listed
debian/gh(Debian:12) = 2.43.1-1 No fix listed
debian/gh(Debian:12) = 2.44.1-1 No fix listed
debian/gh(Debian:12) = 2.44.1-2 No fix listed
debian/gh(Debian:12) = 2.45.0-1 No fix listed
debian/gh(Debian:12) = 2.46.0-1 No fix listed
debian/gh(Debian:12) = 2.46.0-2 No fix listed
debian/gh(Debian:12) = 2.46.0-3 No fix listed
debian/gh(Debian:12) = 2.46.0-4 No fix listed
Show 3 more
ProductAffected versionsFixed in
debian/gh(Debian:13) = 2.46.0-3 No fix listed
debian/gh(Debian:13) = 2.46.0-4 No fix listed
GitHub cli < 2.93.0 2.93.0

References