CVE-2025-25204: `gh attestation verify` returns incorrect exit code during verification if no attestations are present
Vulnerability summary
CVE-2025-25204 is a medium (CVSS 6.3) vulnerability in cli. EPSS estimates a 0.42% chance of exploitation in the next 30 days, higher than 38% of scored vulnerabilities.
Not severe (CVSS 6.3, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 1 · Related 3Timeline
- 14-02-2025PublishedVulnerability first disclosed.
- 03-03-2025Last modifiedVulnerability information updated.
Description
`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.
CVSS metrics
6 scores · 6 sources · 1 version- OSV · UbuntuEcosystem advisory · calculated6.3MediumCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:N/I:H/A:N
- OSV · WolfiEcosystem advisory · calculated6.3MediumCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:N/I:H/A:N
- OSV · GoEcosystem advisory · calculated6.3MediumCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:N/I:H/A:N
- OSV · ChainguardEcosystem advisory · calculated6.3MediumCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:N/I:H/A:N
- NVDNIST6.3MediumCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:N/I:H/A:N
EPSS trend
Probability
0.42%
Chance of exploitation in the next 30 days
Percentile
38%
Versus all other CVEs
30-day change
Increase +0.01 pp
From 0.41% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Chainguard1 product
- gh< 2.67.0-r0
Cli1 product
- cli≥ 2.49.0, < 2.67.0
Github.com/cli1 product
- cliAll versions (No fix recorded)
Github.com/cli/cli1 product
- v2≥ 2.49.0, < 2.67.0
Ubuntu1 product
- ghAll versions (No fix recorded)
Wolfi1 product
- gh< 2.67.0-r0
6 vendors · 6 products
References
8 links- github.com/cli/cliPACKAGE