{"id":"CVE-2025-25204","state":"PUBLISHED","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.","publishedAt":"2025-02-14T16:38:29.038Z","updatedAt":"2025-03-03T19:13:28.888Z","severity":{"score":6.3,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:N/I:H/A:N","source":"GitHub_M"},"assigner":"GitHub_M","products":["cli cli"],"affected":[{"vendor":"cli","product":"cli","versions":[{"version":">= 2.49.0, < 2.67.0","status":"affected"}]}],"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"],"weaknesses":["CWE-390"],"ingestedAt":"2026-10-29T20:08:47.682Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/25xxx/CVE-2025-25204.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2025-25204","state":"PUBLISHED","datePublished":"2025-02-14T16:38:29.038Z","dateUpdated":"2025-03-03T19:13:28.888Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2025-02-03T19:30:53.401Z"},"containers":{"cna":{"title":"`gh attestation verify` returns incorrect exit code during verification if no attestations are present","descriptions":[{"lang":"en","value":"`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."}],"affected":[{"vendor":"cli","product":"cli","versions":[{"version":">= 2.49.0, < 2.67.0","status":"affected"}]}],"references":[{"url":"https://github.com/cli/cli/security/advisories/GHSA-fgw4-v983-mgp8","name":"https://github.com/cli/cli/security/advisories/GHSA-fgw4-v983-mgp8","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/cli/cli/issues/10418","name":"https://github.com/cli/cli/issues/10418","tags":["x_refsource_MISC"]},{"url":"https://github.com/cli/cli/pull/10421","name":"https://github.com/cli/cli/pull/10421","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"HIGH","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":6.3,"baseSeverity":"MEDIUM","confidentialityImpact":"NONE","integrityImpact":"HIGH","privilegesRequired":"LOW","scope":"CHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:N/I:H/A:N","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-390","lang":"en","description":"CWE-390: Detection of Error Condition Without Action","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2025-02-14T16:38:29.038Z"},"source":{"advisory":"GHSA-fgw4-v983-mgp8","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2025-02-19T15:29:05.799010Z","id":"CVE-2025-25204","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-03-03T19:13:28.888Z"}}]}}}