{"id":"CVE-2025-25204","published":"2025-02-14T16:38:29Z","modified":"2025-03-03T19:13:28Z","title":"`gh attestation verify` returns incorrect exit code during verification if no attestations are present","vendor":"cli","product":"cli","tier":"tail","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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:N/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00706,"percentile":0.49005,"provenance":"source"},"cwes":[{"id":"CWE-390","name":"Detection of Error Condition Without Action"}],"references":[{"url":"https://github.com/cli/cli/security/advisories/GHSA-fgw4-v983-mgp8","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/cli/cli/issues/10418","tags":["x_refsource_MISC"]},{"url":"https://github.com/cli/cli/pull/10421","tags":["x_refsource_MISC"]}],"priority":{"score":14.2,"factors":[{"name":"EPSS percentile","points":9.8},{"name":"CVSS severity","points":4.41}]},"vendorSlug":"cli","affectedVersions":[{"vendor":"cli","product":"cli","versions":[">= 2.49.0, < 2.67.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2025-02-19T15:29:05.799010Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/cli/cli/v2","vulnerableRanges":[">=2.49.0, <2.67.0"],"patched":["2.67.0"],"from":["GHSA-fgw4-v983-mgp8","GO-2025-3467"],"provenance":"source"},{"ecosystem":"Go","package":"github.com/cli/cli","vulnerableRanges":["all versions"],"patched":[],"from":["GO-2025-3467"],"provenance":"source"}],"summary":{"text":"The gh attestation verify command in the GitHub CLI (gh, product cli) returns a zero exit status instead of a failure code when no attestations are present, in versions from 2.49.0 up to but not including 2.67.0. An attacker with network access and low privileges, under conditions that are difficult to achieve, can abuse this to get malicious artifacts past any deployment gate that relies on the command's exit code, with user interaction not required and a scope change involved.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:55:50Z"},"euvd":{"id":"EUVD-2025-4090","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2024-52308","published":"2024-11-14","fixed":"2.62.0","kev":false},{"cve":"CVE-2024-53858","published":"2024-11-27","fixed":"2.63.0","kev":false},{"cve":"CVE-2024-54132","published":"2024-12-04","fixed":"2.63.1","kev":false,"link":{"from":"CVE-2024-54132","to":"CVE-2025-25204","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/cli/cli/v2","fromFixed":"2.63.1","toFixed":"2.67.0","daysApart":72}]}},{"cve":"CVE-2025-25204","published":"2025-02-14","fixed":"2.67.0","kev":false},{"cve":"CVE-2026-45803","published":"2026-05-15","fixed":"2.92.0","kev":false,"link":{"from":"CVE-2025-25204","to":"CVE-2026-45803","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/cli/cli/v2","fromFixed":"2.67.0","toFixed":"2.92.0","daysApart":455}]}},{"cve":"CVE-2026-48501","published":"2026-05-29","fixed":"2.93.0","kev":false},{"cve":"CVE-2026-59831","published":"2026-07-09","fixed":"2.96.0","kev":false}],"package":"Go:github.com/cli/cli/v2"}}