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

- Severity: Medium 6.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.42%, higher than 38% of CVEs (2026-12-01)
- Published: 2025-02-14T16:38:29.038Z
- Modified: 2026-09-10T03:50:22.712Z
- Also known as: GHSA-fgw4-v983-mgp8, GO-2025-3467
- Related: CGA-rr9m-4h8x-cwqf
- Weaknesses: CWE-390
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- cli cli: >= 2.49.0, < 2.67.0
- github.com/cli/cli/v2 (Go): from 2.49.0 before 2.67.0
- github.com/cli/cli (Go): all versions

## Every score

- GitHub_M: CVSS:3.1 6.3 Medium `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:N/I:H/A:N`
- GitHub: CVSS:3.1 6.3 Medium `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:N/I:H/A:N`

## References

- <https://github.com/cli/cli/security/advisories/GHSA-fgw4-v983-mgp8> (advisory, web)
- <https://github.com/cli/cli/issues/10418> (report, web)
- <https://github.com/cli/cli/pull/10421> (fix, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-25204> (advisory)
- <https://github.com/cli/cli> (package)

## Sources

- CVE List: [CVE-2025-25204](https://www.cve.org/CVERecord?id=CVE-2025-25204), CVE Terms of Use, modified 2025-03-03
- GitHub Advisory Database: [GHSA-fgw4-v983-mgp8](https://github.com/advisories/GHSA-fgw4-v983-mgp8), CC-BY-4.0, modified 2026-09-10
- Go Vulnerability Database: [GO-2025-3467](https://pkg.go.dev/vuln/GO-2025-3467), CC-BY-4.0, modified 2026-02-04
- NVD: [CVE-2025-25204](https://nvd.nist.gov/vuln/detail/CVE-2025-25204), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-25204 · Whole record: https://cve.day/CVE-2025-25204.json · Rebuilt by cve.day 2026-11-25T22:58:54.104Z
