{"schemaVersion":4,"id":"CVE-2025-25204","aliases":["UBUNTU-CVE-2025-25204","CGA-cw5w-hcjr-w328","CGA-hh4g-995c-759v","GHSA-fgw4-v983-mgp8","GO-2025-3467"],"status":"published","duplicateOf":null,"title":"`gh attestation verify` returns incorrect exit code during verification if no attestations are present","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.","dates":{"published":"2025-02-14T16:38:29.038Z","modified":"2025-03-03T19:13:28.888Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":6.3,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:N/I:H/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":6.3,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:N/I:H/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":6.3,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:N/I:H/A:N","exploitability":4.6,"impact":6.7,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Wolfi","score":6.3,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:N/I:H/A:N","exploitability":4.6,"impact":6.7,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Go","score":6.3,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:N/I:H/A:N","exploitability":4.6,"impact":6.7,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Chainguard","score":6.3,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:N/I:H/A:N","exploitability":4.6,"impact":6.7,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":6.3,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:N/I:H/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00417,"percentile":0.38022,"severity":"low","asOf":"2026-12-04T00:00:00.000Z","change":{"pp":0.010999999999999985,"baselineDate":"2026-11-04T00:00:00.000Z","baselineScore":0.00406},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-10-22T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-10-23T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-10-24T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-10-25T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-10-26T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-10-27T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-10-28T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-10-29T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-10-30T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-10-31T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-11-01T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-11-02T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-11-03T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-11-04T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-11-05T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-11-06T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-11-07T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-11-08T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-11-09T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-11-10T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-11-11T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-11-12T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-11-13T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.00417,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.00417,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.00417,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.00417,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.00706,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.00706,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.00706,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.00706,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.00706,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.00706,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.00417,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.00417,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.00417,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.00417,"percentile":0.38022}],"last30":[{"date":"2026-11-04T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-11-05T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-11-06T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-11-07T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-11-08T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-11-09T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-11-10T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-11-11T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-11-12T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-11-13T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.00406,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.00417,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.00417,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.00417,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.00417,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.00706,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.00706,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.00706,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.00706,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.00706,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.00706,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.00417,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.00417,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.00417,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.00417,"percentile":0.38022}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-390","name":"Detection of Error Condition Without Action","description":"The product detects a specific error, but takes no actions to handle the error.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":"Medium","url":"https://cwe.mitre.org/data/definitions/390.html"}],"affected":[{"vendor":"chainguard","product":"gh","name":"gh","label":"gh","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/gh","purlType":"apk","versions":[{"text":"< 2.67.0-r0","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"2.67.0-r0","endInclusive":false}}],"versionsText":"< 2.67.0-r0","eol":null,"hubHref":null},{"vendor":"wolfi","product":"gh","name":"gh","label":"gh","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/gh","purlType":"apk","versions":[{"text":"< 2.67.0-r0","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"2.67.0-r0","endInclusive":false}}],"versionsText":"< 2.67.0-r0","eol":null,"hubHref":null},{"vendor":"cli","product":"cli","name":"cli","label":"cli","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 2.49.0, < 2.67.0","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"2.49.0","startInclusive":true,"end":"2.67.0","endInclusive":false}}],"versionsText":"≥ 2.49.0, < 2.67.0","eol":null,"hubHref":"/vendor/cli/cli"},{"vendor":"ubuntu","product":"gh","name":"gh","label":"gh","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/gh","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null,"bounds":{"kind":"all"}}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"github.com/cli","product":"cli","name":"github.com/cli/cli","label":"cli","ecosystem":"Go","cpePart":null,"purl":"pkg:golang/github.com/cli/cli","purlType":"golang","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null,"bounds":{"kind":"all"}}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"github.com/cli/cli","product":"v2","name":"github.com/cli/cli/v2","label":"v2","ecosystem":"Go","cpePart":null,"purl":"pkg:golang/github.com/cli/cli/v2","purlType":"golang","versions":[{"text":"≥ 2.49.0, < 2.67.0","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"2.49.0","startInclusive":true,"end":"2.67.0","endInclusive":false}}],"versionsText":"≥ 2.49.0, < 2.67.0","eol":null,"hubHref":null}],"affectedCount":6,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/cli/cli/security/advisories/GHSA-fgw4-v983-mgp8","label":"github.com/cli/cli/security/advisories/GHSA-fgw4-v983-mgp8","hostname":"github.com","tags":["X Refsource CONFIRM","REPORT","Advisory","WEB"]},{"url":"https://github.com/cli/cli/issues/10418","label":"github.com/cli/cli/issues/10418","hostname":"github.com","tags":["X Refsource MISC","REPORT","WEB"]},{"url":"https://github.com/cli/cli/pull/10421","label":"github.com/cli/cli/pull/10421","hostname":"github.com","tags":["X Refsource MISC","REPORT","FIX","WEB"]},{"url":"https://ubuntu.com/security/CVE-2025-25204","label":"ubuntu.com/security/CVE-2025-25204","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2025-25204","label":"www.cve.org/CVERecord?id=CVE-2025-25204","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/25xxx/CVE-2025-25204.json","label":"github.com/CVEProject/cvelistV5/tree/main/cves/2025/25xxx/CVE-2025-25204.json","hostname":"github.com","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-25204","label":"nvd.nist.gov/vuln/detail/CVE-2025-25204","hostname":"nvd.nist.gov","tags":["Advisory","Oval"]},{"url":"https://github.com/cli/cli","label":"github.com/cli/cli","hostname":"github.com","tags":["PACKAGE"]}],"lineage":{"upstream":[],"downstream":["OPENSUSE-SU-2025:14889-1"],"duplicates":[],"related":["CGA-PF9F-25X5-J94P","CGA-RR9M-4H8X-CWQF","OPENSUSE-SU-2025:14889-1"]},"timeline":[{"kind":"published","date":"2025-02-14T16:38:29.038Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-03-03T19:13:28.888Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"priority":{"label":"routine","tag":null,"reason":"Not severe (CVSS 6.3, network access); no exploitation reported by the 5 checked sources","nextStep":"Fix in the normal cadence","rank":[0,0,0,0,0,63],"checkedSources":["cisa","enisa","circl","shadowserver","cisa-adp"],"evidence":[{"type":"epss","source":"FIRST","date":"2026-12-04T00:00:00.000Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"value":0.00417,"stale":false,"promoted":null},{"type":"cvss","source":"cve.org","date":"2025-03-03T19:13:28.888Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":6.3,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:N/I:H/A:N","version":"3.1","headline":true},{"type":"cvss","source":"osv_ubuntu","date":"2025-03-03T19:13:28.888Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":6.3,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:N/I:H/A:N","version":"3.1"},{"type":"cvss","source":"osv_wolfi","date":"2025-03-03T19:13:28.888Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":6.3,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:N/I:H/A:N","version":"3.1"},{"type":"cvss","source":"osv_go","date":"2025-03-03T19:13:28.888Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":6.3,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:N/I:H/A:N","version":"3.1"},{"type":"cvss","source":"osv_chainguard","date":"2025-03-03T19:13:28.888Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":6.3,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:N/I:H/A:N","version":"3.1"},{"type":"cvss","source":"nvd","date":"2025-03-03T19:13:28.888Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":6.3,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:N/I:H/A:N","version":"3.1"},{"type":"adp","source":"cisa-adp","date":"2025-02-19T15:29:05.799Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"exploitation":"poc"}],"epss":{"value":0.00417,"date":"2026-12-04T00:00:00.000Z","stale":false,"promoted":null},"sources":[{"id":"cisa","lastSuccessfulSync":"2026-12-05T08:03:29.184Z","state":"fresh"},{"id":"enisa","lastSuccessfulSync":"2026-12-05T08:03:29.748Z","state":"fresh"},{"id":"circl","lastSuccessfulSync":"2026-12-05T08:03:29.946Z","state":"fresh"},{"id":"shadowserver","lastSuccessfulSync":null,"state":"unavailable"},{"id":"cisa-adp","lastSuccessfulSync":"2026-12-05T08:01:00.622Z","state":"fresh"},{"id":"epss","lastSuccessfulSync":"2026-12-05T08:03:27.537Z","state":"fresh"},{"id":"osv","lastSuccessfulSync":"2026-12-05T08:03:26.585Z","state":"fresh"}],"feedEvent":null},"meta":{"dataAsOf":"2026-12-05T08:15:21.491Z","stale":false,"partial":false}}