CVE-2025-25204 Details
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.
A vulnerability exists in GitHub CLI's artifact attestation verification command, specifically in versions 2.49.0 prior to 2.67.0. Under certain conditions, the command `gh attestation verify` incorrectly returns a zero exit status when no matching attestations are found. This misrepresentation can lead users to believe that an attestation has been successfully verified, when in fact it has not. The issue arises when an artifact's attestation predicate type differs from the one specified in the command. Users relying on the exit code for verification may inadvertently deploy malicious artifacts in systems that use these exit codes to control deployment processes.
Users should update GitHub CLI to version 2.67.0, where this issue has been fixed.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Feb 14, 2025CISA-ADP
Assessed Feb 19, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/cli/cli/issues/10418 | [email protected] | ExploitIssue TrackingTechnical DescriptionVendor |
| https://github.com/cli/cli/pull/10421 | [email protected] | Issue TrackingVendor |
| https://github.com/cli/cli/security/advisories/GHSA-fgw4-v983-mgp8 | [email protected] | AdvisoryRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-390 | Detection of Error Condition Without Action | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| GitHub CLI | >= 2.49.0, < 2.67.0 (semver) |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Feb 14, 2025 | New CVE Received | [email protected] |
Volerion