Detection of Error Condition Without Action Affecting gh package, versions <2.67.0-r0


Severity

Recommended
low

Based on default assessment until relevant scores are available.

Threat Intelligence

Exploit Maturity
Not Defined

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-CHAINGUARDLATEST-GH-8730797
  • published15 Feb 2025
  • disclosed14 Feb 2025

Introduced: 14 Feb 2025

NewCVE-2025-25204  (opens in a new tab)
CWE-390  (opens in a new tab)

How to fix?

Upgrade Chainguard gh to version 2.67.0-r0 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream gh package and not the gh package as distributed by Chainguard. See How to fix? for Chainguard relevant fixed versions and status.

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.