# CVE-2025-25204: \`gh attestation verify\` returns incorrect exit code during verification if no attestations are present

- Priority: **Routine**
- Reason: Not severe (CVSS 6.3, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2025-02-14 · Modified: 2025-03-03
- Aliases: UBUNTU-CVE-2025-25204, CGA-cw5w-hcjr-w328, CGA-hh4g-995c-759v, GHSA-fgw4-v983-mgp8, GO-2025-3467
- Record: https://cvemate.com/vulnerability/CVE-2025-25204 · JSON: https://cvemate.com/vulnerability/CVE-2025-25204/json

## Description

```text
`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.
```

## Signals

- CVSS: 6.3 medium (v3.1, CVE.org) CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:N/I:H/A:N
- EPSS: 0.417%, percentile 38.022%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- chainguard gh (Chainguard): \< 2.67.0-r0
- wolfi gh (Wolfi): \< 2.67.0-r0
- cli cli: ≥ 2.49.0, \< 2.67.0
- ubuntu gh (Ubuntu): All versions (No fix recorded)
- github.com/cli cli (Go): All versions (No fix recorded)
- github.com/cli/cli v2 (Go): ≥ 2.49.0, \< 2.67.0

## References

- <https://github.com/cli/cli/security/advisories/GHSA-fgw4-v983-mgp8>
- <https://github.com/cli/cli/issues/10418>
- <https://github.com/cli/cli/pull/10421>
- <https://ubuntu.com/security/CVE-2025-25204>
- <https://www.cve.org/CVERecord?id=CVE-2025-25204>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/25xxx/CVE-2025-25204.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2025-25204>
- <https://github.com/cli/cli>

---

Data as of 2026-12-05T08:13:13.201Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
