CVE-2026-64652 GitHub CLI: Partial token disclosure in `gh auth status` output
- Published
- Updated
- Exploit status
- No public exploit known
Description
GitHub CLI (gh) is GitHub's official command line tool. Prior to version 2.97.0, gh auth status masked only the characters after the last underscore in certain fine-grained personal access tokens and GitHub App tokens. As a result, part of an affected token could appear in terminal or CI output that is captured or shared. Authenticated users are affected if they ran gh auth status (without the --show-token flag) with a token type whose format contains an underscore after the prefix. This includes fine-grained personal access tokens (github_pat_) and GitHub App installation and user access tokens (ghs_, ghu_; for example, ghs_<APPID><JWT>), as well as the Actions GITHUB_TOKEN. Classic tokens such as gho and ghp_* have an underscore-free body and are not affected. This issue is fixed in version 2.97.0.
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| cli github.com/cli/cli(Go) | < 2.97.0 | 2.97.0 |
| cli github.com/cli/cli(Go) | All versions | No fix listed |
| cli github.com/cli/cli | = < 2.97.0 | No fix listed |
| debian/gh(Debian:12) | All versions | 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 |
| debian/gh(Debian:13) | All versions | No fix listed |
| debian/gh(Debian:13) | = 2.46.0-3 | No fix listed |
| debian/gh(Debian:13) | = 2.46.0-4 | No fix listed |
| ubuntu/gh(Ubuntu:22.04) | All versions | No fix listed |
| ubuntu/gh(Ubuntu:24.04) | All versions | No fix listed |
Show 3 more
| Product | Affected versions | Fixed in |
|---|---|---|
| ubuntu/gh(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/gh(Ubuntu:26.10) | All versions | No fix listed |
| azure linux gh(Azure Linux:3.0) | < 2.97.0-1 | 2.97.0-1 |
References
- MSRC Security Update Guide vendor-advisory
- CBL-Mariner Releases vendor-advisory
- https://github.com/cli/cli/security/advisories/GHSA-cg6r-mpgc-h9mm vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/cli/cli/commit/3f6a16a9f8c7fe9676aa8d8f47b399310dd231c3 patch
- github.com product
- https://github.com/cli/cli/releases/tag/v2.97.0
- github.com
- Debian Security Tracker CVE-2026-64652 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- www.cve.org
- bugs.debian.org issue-tracking