Findings

CVE-2026-64655

GitHub CLI allows attestation verification bypass through unescaped regex metacharacters

Published Oct 15, 2026 · updated Oct 15, 2026

### Summary A security vulnerability has been identified in GitHub CLI that could allow attestation verification bypass when using with or flags. GitHub CLI builds the certificate matcher from these flag values without escaping regex metacharacters, so a repository or workflow name is treated as a regular expression rather than a literal string. GitHub permits characters such as in organization, repository, and workflow path names, and is a regex wildcard, so a malicious actor can create a lookalike name that satisfies a matcher intended for a different, trusted signer. ### Details GitHub CLI constructs a regular expression from the and values and matches it against the signing certificate's SAN (Subject Alternative Name) during Sigstore attestation verification. The user-supplied value is interpolated into the pattern without escaping regex metacharacters, so any metacharacter permitted in a GitHub path is interpreted as regex syntax instead of a literal character. The most practical case is , which GitHub allows in org/repo names and is a regex wildcard meaning "any single character." For example, an attacker-controlled repository named: matches a verifier configured for the trusted signer: because the unescaped in the constructed pattern matches the in the attacker's name (and any other single character at that position). This affected the and flags but did not affect the and flags which include an exact string comparison. In , the GitHub CLI escapes the user-supplied signer values before they are incorporated into the SAN matcher, so they are matched as literal strings. ### Impact The practical impact is limited, exploitation requires the attacker to create a plausible lookalike repository name and produce valid Sigstore attestations from it. This could undermine supply chain verification for CI/CD pipelines or policy gates that use these flags to pin trust to a specific signing workflow. ### Remediation and Mitigation 1. Upgrade to or later, which escapes signe

Code

The project this record applies to. Exploit listings stay in References.

Timeline

Detection, updates, and resolution for this record.

  1. Oct 15, 2026 · GitHub Advisory Database

    Detected

    ### Summary A security vulnerability has been identified in GitHub CLI that could allow attestation verification bypass when using with or flags. GitHub CLI builds the certificate matcher from these flag values without escaping regex metacharacters, so a repository or workflow name is treated as a regular expression rather than a literal string. GitHub permits characters such as in organization, r

  2. Oct 15, 2026 · GitHub Advisory Database

    Fix available

    github.com/cli/cli/v2 fixed in 2.97.0

  3. Oct 15, 2026 · GitHub Advisory Database

    Fix available

    github.com/cli/cli/v2 fixed in 2.97.0

  4. Oct 15, 2026 · GitHub Advisory Database

    Updated

    ### Summary A security vulnerability has been identified in GitHub CLI that could allow attestation verification bypass when using with or flags. GitHub CLI builds the certificate matcher from these flag values without escaping regex metacharacters, so a repository or workflow name is treated as a regular expression rather than a literal string. GitHub permits characters such as in organization, r

Affected

  • Go github.com/cli/cli/v20 → 2.97.0
  • go github.com/cli/cli/v2< 2.97.0
  • golang github.comversion unspecified

Sources

  • CVE.orgVulnerability recordCVE-2026-64655

    Official CVE identifier

    cve.org
  • GitHub Advisory DatabasePackage advisoryGHSA-mm27-mwq9-fr5g

    GitHub Advisory Database record mirrored by OSV.

    github.com
  • GitLab Advisory DatabasePackage advisoryCVE-2026-64655

    A security vulnerability has been identified in GitHub CLI that could allow attestation verification bypass when using gh attestation verify with &ndash;signer-repo or &ndash;signer-workflow flags. GitHub CLI builds the certificate matcher from these flag values without escaping regex metacharacters, so a repository or workflow name is treated as a regular expression rather than a literal string.

    advisories.gitlab.com
  • OSV.devPackage advisoryGHSA-mm27-mwq9-fr5g

    GitHub CLI allows attestation verification bypass through unescaped regex metacharacters

    osv.dev

References