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.
Published: 2026-08-06
Score: 2.1 Low
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

GitHub CLI allows users to verify attestations using the --signer-repo and --signer-workflow flags, but prior to version 2.97.0 the tool builds a certificate Subject Alternative Name matcher without escaping regex metacharacters. This means that characters such as a period are treated as regex wildcards. An attacker can register a look‑alike repository or workflow name that satisfies the matcher intended for a trusted signer, thereby bypassing the intended sigstore attestation verification. The vulnerability falls under CWE‑185 and results in unauthorized trust relationships, potentially compromising supply‑chain validation for CI/CD pipelines and policy gates that pin trust to a specific signing workflow.

Affected Systems

All installations of GitHub CLI (gh) older than version 2.97.0 on any operating system are affected. The vulnerability exists when the attestation verify command is run with the --signer-repo or --signer-workflow option and the supplied values contain regex metacharacters.

Risk and Exploitability

The CVSS score of 2.1 classifies this as low severity. The EPSS score is not available, and the issue is not listed in the CISA KEV catalog. Exploitation requires the attacker to create a plausible look‑alike repository or workflow with a name that contains regex metacharacters such as a period. Once that name is registered, the attacker can produce valid attestations that will be accepted by a pipeline trusting the original signer. This would allow circumvention of supply‑chain controls, but the attack is limited to environments where the attacker has the ability to create new GitHub repositories or workflows that match the desired pattern.

Generated by OpenCVE AI on August 7, 2026 at 00:36 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update GitHub CLI to version 2.97.0 or later, which implements proper escaping of regex metacharacters in the attestation verifier.
  • If an immediate upgrade is not feasible, modify your policies to consider only exact literal matches of repository and workflow names, or explicitly escape any regex metacharacters in configuration before passing them to gh.
  • Audit existing CI/CD pipelines and policy gates that rely on signed attestations to ensure they reference trusted repositories and workflows and that no look‑alike names could be used to bypass verification.

Generated by OpenCVE AI on August 7, 2026 at 00:36 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Sat, 08 Aug 2026 03:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Fri, 07 Aug 2026 01:30:00 +0000

Type Values Removed Values Added
First Time appeared Cli
Cli cli
Vendors & Products Cli
Cli cli

Thu, 06 Aug 2026 22:15:00 +0000

Type Values Removed Values Added
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.
Title GitHub CLI: Attestation Verification Bypass via Unescaped Regex Metacharacters in SAN Matching
Weaknesses CWE-185
References
Metrics cvssV4_0

{'score': 2.1, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:N/VI:N/VA:N/SC:N/SI:L/SA:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-08-08T02:23:17.134Z

Reserved: 2026-07-20T17:11:30.896Z

Link: CVE-2026-64655

cve-icon Vulnrichment

Updated: 2026-08-08T02:23:12.585Z

cve-icon NVD

Status : Received

Published: 2026-08-06T22:18:13.527

Modified: 2026-08-08T03:16:46.670

Link: CVE-2026-64655

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-07T01:15:04Z

Weaknesses
  • CWE-185

    Incorrect Regular Expression