CVE-2026-64655 GitHub CLI: Attestation Verification Bypass via Unescaped Regex Metacharacters in SAN Matching
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: yes · technical impact: partial
- Technology
- UbuntuDebian
Description
GitHub CLI (gh) is GitHub’s official command line tool. Prior to 2.97.0, gh attestation verify builds the certificate Subject Alternative Name matcher from the --signer-repo and --signer-workflow flag values without escaping regex metacharacters, so a user-supplied repository or workflow name is treated as a regular expression rather than a literal string. Because GitHub permits characters such as . in organization, repository, and workflow path names and . is a regex wildcard, an attacker can register a lookalike name (for example github/artifact.attestations-workflows) that satisfies a matcher intended for a different trusted signer (github/artifact-attestations-workflows), bypassing the intended Sigstore attestation verification. Exploitation requires the attacker to create a plausible lookalike repository and produce valid attestations from it, which could undermine supply chain verification for CI/CD pipelines or policy gates that pin trust to a specific signing workflow. This issue is fixed in version 2.97.0.
Upgrade path
9 packages: 1 fixed, 1 partially fixed, 6 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| 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 |
| ubuntu/gh(Ubuntu 22.04) | All versions | No fix listed | No fix yet |
| ubuntu/gh(Ubuntu 24.04) | All versions | No fix listed | No fix yet |
| ubuntu/gh(Ubuntu 26.04) | All versions | No fix listed | No fix yet |
| ubuntu/gh(Ubuntu 26.10) | All versions | No fix listed | No fix yet |
| cli github.com/cli/cli(Go) | < 2.97.0; All versions | 2.97.0 | Partially fixed |
| azure linux gh(Azure Linux 3.0) | < 2.97.0-1 | 2.97.0-1 | Fixed |
| cli github.com/cli/cli | = < 2.97.0 | No fix listed | Versions listed |
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-mm27-mwq9-fr5g vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/cli/cli/commit/55dbb4dc6b7edb10b48e3d7fc5bccd32318d1b55 patch
- github.com product
- https://github.com/cli/cli/releases/tag/v2.97.0
- github.com
- Debian Security Tracker CVE-2026-64655 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- www.cve.org
- bugs.debian.org issue-tracking
- ENISA EUVD EUVD-2026-54222 third-party-advisory