GitHub CLI (gh) Vulnerability: Regex Bypass in Attestation Verification

gh Updated 13 Aug 2026

Summary

06/08/2026
N/A
No i
Unrated
Not published

DEBIAN-CVE-2026-64655: GitHub CLI (gh) is GitHub’s official command line tool. Affects gh versions 2.23.0+dfsg1-1 – 2.46.0-4. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

GitHub CLI (gh) is the official command line tool for interacting with GitHub, enabling users to manage repositories, pull requests, issues, and more directly from the terminal. It is widely used in CI/CD pipelines for automating workflows. However, prior to version 2.97.0, it had a significant vulnerability that allowed attackers to exploit the way it handled repository and workflow names during attestation verification.

Vulnerability Detail

The vulnerability arises from the 'gh attestation verify' command, which constructs the certificate Subject Alternative Name matcher using user-supplied values from the --signer-repo and --signer-workflow flags without properly escaping regex metacharacters. This oversight allows an attacker to create a lookalike repository name that matches the intended signer, thereby bypassing the Sigstore attestation verification process. This could lead to serious implications for supply chain security, as it undermines the trust model in CI/CD pipelines and policy gates that rely on specific signing workflows.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

As a temporary workaround, avoid using the 'gh attestation verify' command with untrusted or unknown repository and workflow names until you can update to the patched version.

Conclusion

In summary, the GitHub CLI (gh) vulnerability allows for regex bypass in attestation verification, posing a risk to supply chain security. Users are advised to update to version 2.97.0 or later to mitigate this risk and can utilize Vulert for ongoing vulnerability monitoring.

See every vulnerability recorded for gh →

Share this vulnerability

FAQ

The vulnerability allows attackers to bypass attestation verification, potentially undermining the security of CI/CD pipelines.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

Versions of GitHub CLI prior to 2.97.0 are affected by this vulnerability.

Yes, avoid using the 'gh attestation verify' command with untrusted names until you can update to the patched version.

Vulert monitors and alerts for open-source vulnerabilities in your software using just a manifest file like package-lock.json, providing real-time insights.

Related vulnerabilities

Recent vulnerabilities recorded for gh.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback