CVE-2025-25204

Medium

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.

SeverityMedium
CVSS6.3
Exploit probability—
ProductGithub.com/cli/cli/v2
PublishedFeb 14, 2025
First seenFeb 14, 2025
Weakness typeCWE-390CWE-390

How to fix

Update
  • github.com/cli/cli/v22.67.0 or later

Affected products

ProductAffected versionsFixed in
github.com/cli/cli/v2Go2.49.0 ≤ v < 2.67.02.67.0
github.com/cli/cliGoNo range specified—

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.