Skip to content
OpenAdvisories
Low · 2.1 CVE-2026-64655 EUVD-2026-54222GHSA-mm27-mwq9-fr5gGO-2026-6767

GitHub CLI: Attestation Verification Bypass via Unescaped Regex Metacharacters in SAN Matching

Published Aug 6, 2026 · Updated Aug 8, 2026 · Assigned by GitHub_M

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.

Affected products

VendorProductAffectedFixed
cli cli < 2.97.0 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 13 gh No fix yet —
Debian 12 gh No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 gh No fix yet —
Ubuntu 22.04 LTS gh No fix yet —
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 26.04 LTS gh No fix yet —
Ubuntu Pro 24.04 LTS gh No fix yet —
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed gh 2.97.0-1.1 openSUSE-SU-2026:11530-1
openSUSE Leap 16.0 gh 2.98.0-bp160.1.1 openSUSE-SU-2026:21663-1

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 gh 2.97.0-1 —

Affected packages

EcosystemPackageAffectedFixedRecord
Go github.com/cli/cli all versions — GO-2026-6767
Go github.com/cli/cli/v2 < 2.97.0 2.97.0 GHSA-mm27-mwq9-fr5g

Advisories 2

References