CVE-2025-25204

`gh attestation verify` returns incorrect exit code during verification if no attestations are present

CVE-2025-25204 is fixed in GitHub CLI on 1 platform by GitHub CLI 2.67.0 (version 2.67.0), released February 11, 2025. It is not reported as exploited. Patch Radar priority: Routine.

Routine
CVSS
6.3
No vendor severity
Exploitation
None reported
No vendor assessment
CISA KEV
Not listed
Not in the Known Exploited Vulnerabilities catalog
EPSS
0.0041
35th percentile

`gh` is GitHub’s official command line tool. Starting in version 2.49.0 and prior to version 2.67.0, under certain conditions, a bug in GitHub's Artifact Attestation cli tool `gh attestation verify` causes it to return a zero exit status when no attestations are present. This behavior is incorrect: When no attestations are present, `gh attestation verify` should return a non-zero exit status code, thereby signaling verification failure. An attacker can abuse this flaw to, for example, deploy malicious artifacts in any system that uses `gh attestation verify`'s exit codes to gatekeep deployments. Users are advised to update `gh` to patched version `v2.67.0` as soon as possible.

Where it's fixed

ProductFixed inFixReleased
Windows apps
GitHub CLI 2.67.0 GitHub CLI 2.67.0 Feb 11, 2025

Patch Radar data is free to use with attribution. Terms and how to credit it.

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.