Medium severity · published Feb 14, 2025
CVE-2025-25204
`gh attestation verify` returns incorrect exit code during verification if no attestations are present
6.3
CVSS
0.4%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:N/I:H/A:N
Attack vector
Network
Complexity
High
Privileges
Low
User interaction
None
Confidentiality
None
Integrity
High
Availability
None
Scope
Changed
Exploitation
Is it being used?
Exploit prediction (EPSS)0.4% · higher than 35% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
CL
cli · cli
>= 2.49.0, < 2.67.0 · source: vendor
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2025-25204
CVE.org
https://www.cve.org/CVERecord?id=CVE-2025-25204
github.com
https://github.com/cli/cli/issues/10418
github.com
https://github.com/cli/cli/pull/10421
github.com
https://github.com/cli/cli/security/advisories/GHSA-fgw4-v983-mgp8
More from cli
9.6
CVE-2024-52308
Connecting to a malicious Codespaces via GH CLI could allow command execution on the user's computer
9.1
CVE-2026-48501
GitHub CLI tokens leak via `gh attestation` commands
6.5
CVE-2024-53858
Recursive repository cloning can leak authentication tokens to non-GitHub submodule hosts in the gh cli
6.3
CVE-2024-54132
GitHub CLI allows downloading malicious GitHub Actions workflow artifact to result in path traversal vulnerability
5.3
CVE-2026-64654
GitHub CLI: Terminal escape sequence injection in multiple `gh` commands
