CVE-2025-25204
published medium CVSS 3.1 · 6.3`gh attestation verify` returns incorrect exit code during verification if no attestations are present
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| cli | — | cli>= 2.49.0, < 2.67.0 | Affected | Not stated | GitHub_M |
| SUSE / openSUSE | openSUSE-Tumbleweed | govulncheck-vulndbaarch64 | Advisory build | 0.0.20250312T181707-1.1 | OPENSUSE-SU-2025:14889-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | govulncheck-vulndbppc64le | Advisory build | 0.0.20250312T181707-1.1 | OPENSUSE-SU-2025:14889-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | govulncheck-vulndbs390x | Advisory build | 0.0.20250312T181707-1.1 | OPENSUSE-SU-2025:14889-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | govulncheck-vulndbx86_64 | Advisory build | 0.0.20250312T181707-1.1 | OPENSUSE-SU-2025:14889-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 6.3 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:N/I:H/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| cli | cli | >= 2.49.0, < 2.67.0 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-390 CWE-390: Detection of Error Condition Without Action
References
3Provider assertions
2GitHub_M · cna
`gh attestation verify` returns incorrect exit code during verification if no attestations are present
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 75532f7476267bec6cb34035fb758774f4aa645f26f055785b4e23bd04cd139e
- Ingested
- 23 Sep 2026, 08:41:57 UTC
- Source record
- Official CVE record