CVE-2025-25204
published 2025-02-14CVE-2025-25204: `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…
PriorityP335medium6.3CVSS 3.1
AVNACHPRLUINSCCNIHAN
EPSS
0.38%
29.4th percentile
`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
5 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| cli | cli | — | — |
| debian | gh | — | — |
| github.com | cli_cli_v2 | >= 2.49.0 < 2.67.0 | 2.67.0 |
| msrc | azl3_gh_2.62.0-6_on_azure_linux_3.0 | — | — |
| msrc | azl3_gh_2.62.0-8_on_azure_linux_3.0 | — | — |
CVSS provenance
nvdv3.16.3MEDIUMCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:N/I:H/A:N
osv6.3MEDIUM
vendor_debian6.3LOW
vendor_msrc6.3MEDIUM
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
OSV
`gh attestation verify` returns incorrect exit code during verification if no attestations are present in github.com/cli/cli
osv·2025-03-03
CVE-2025-25204 `gh attestation verify` returns incorrect exit code during verification if no attestations are present in github.com/cli/cli
`gh attestation verify` returns incorrect exit code during verification if no attestations are present in github.com/cli/cli
`gh attestation verify` returns incorrect exit code during verification if no attestations are present in github.com/cli/cli
OSV
`gh attestation verify` returns incorrect exit code during verification if no attestations are present
osv·2025-02-14
CVE-2025-25204 [MEDIUM] `gh attestation verify` returns incorrect exit code during verification if no attestations are present
`gh attestation verify` returns incorrect exit code during verification if no attestations are present
### Summary
A bug in GitHub's Artifact Attestation CLI tool, `gh attestation verify`, may return an incorrect zero exit status when no matching attestations are found for the specified `--predicate-type ` or the default `https://slsa.dev/provenance/v1` if not specified. This issue only arises if an artifact has an attestation with a predicate type different from the one provided in the command. As a result, users relying solely on these exit codes may mistakenly believe the attestation has been verified, despite the absence of an attestation with the specified predicate type and the tool printing a verification failure.
Users are advised to update `gh` to version `v2.67.0` as soon as p
GHSA
`gh attestation verify` returns incorrect exit code during verification if no attestations are present
ghsa·2025-02-14
CVE-2025-25204 [MEDIUM] CWE-390 `gh attestation verify` returns incorrect exit code during verification if no attestations are present
`gh attestation verify` returns incorrect exit code during verification if no attestations are present
### Summary
A bug in GitHub's Artifact Attestation CLI tool, `gh attestation verify`, may return an incorrect zero exit status when no matching attestations are found for the specified `--predicate-type ` or the default `https://slsa.dev/provenance/v1` if not specified. This issue only arises if an artifact has an attestation with a predicate type different from the one provided in the command. As a result, users relying solely on these exit codes may mistakenly believe the attestation has been verified, despite the absence of an attestation with the specified predicate type and the tool printing a verification failure.
Users are advised to update `gh` to version `v2.67.0` as soon as p
OSV
CVE-2025-25204: `gh` is GitHub’s official command line tool
osv·2025-02-14·CVSS 6.3
CVE-2025-25204 [MEDIUM] CVE-2025-25204: `gh` is GitHub’s official command line tool
`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.
Microsoft
`gh attestation verify` returns incorrect exit code during verification if no attestations are present
vendor_msrc·2025-02-11·CVSS 6.3
CVE-2025-25204 [MEDIUM] CWE-390 `gh attestation verify` returns incorrect exit code during verification if no attestations are present
`gh attestation verify` returns incorrect exit code during verification if no attestations are present
FAQ: Is Azure Linux the only Microsoft product that includes this open-source library and is therefore potentially affected by this vulnerability?
One of the main benefits to our customers who choose to use the Azure Linux distro is the commitment to keep it up to date with the most recent and most secure versions of the open source libraries with which the distro is composed. Microsoft is committed to transparency in this work which is why we began publishing CSAF/VEX in October 2025. See this blog post for more information. If impact to additional products is identified, we will update the CVE to reflect this.
Mariner: Mariner
GitHub_M: GitHub_M
Customer Action Required: Yes
Remedi
Debian
CVE-2025-25204: gh - `gh` is GitHub’s official command line tool. Starting in version 2.49.0 and prio...
vendor_debian·2025·CVSS 6.3
CVE-2025-25204 [MEDIUM] CVE-2025-25204: gh - `gh` is GitHub’s official command line tool. Starting in version 2.49.0 and prio...
`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.
Scope: local
bookworm: resolved
sid: resolved
trixie: resolved
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
2025-02-14
Published