{"schemaVersion":3,"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":null,"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.00406,"percentile":0.33511,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-20T00: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":0.33511}],"last30":[{"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":0.33511}]},"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}],"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}],"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}],"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}],"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}],"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}],"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}],"risk":{"score":25,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T20:36:56.361Z","stale":false,"partial":false}}