Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/cli/cli/v2
  4. ›
  5. CVE-2025-25204

CVE-2025-25204: `gh attestation verify` returns incorrect exit code during verification if no attestations are present

February 14, 2025

A bug in GitHub’s Artifact Attestation CLI tool, gh attestation verify, may return an incorrect zero exit status when no matching attestations are found for the specified --predicate-type <value> or the default https://slsa.dev/provenance/v1 if not specified. This issue only arises if an artifact has an attestation with a predicate type different from the one provided in the command. As a result, users relying solely on these exit codes may mistakenly believe the attestation has been verified, despite the absence of an attestation with the specified predicate type and the tool printing a verification failure.

Users are advised to update gh to version v2.67.0 as soon as possible.

Initial report: https://github.com/cli/cli/issues/10418 Fix: https://github.com/cli/cli/pull/10421

References

  • github.com/advisories/GHSA-fgw4-v983-mgp8
  • github.com/cli/cli
  • github.com/cli/cli/issues/10418
  • github.com/cli/cli/pull/10421
  • github.com/cli/cli/security/advisories/GHSA-fgw4-v983-mgp8
  • nvd.nist.gov/vuln/detail/CVE-2025-25204

Code Behaviors & Features

Detect and mitigate CVE-2025-25204 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 2.49.0 before 2.67.0

Fixed versions

  • 2.67.0

Solution

Upgrade to version 2.67.0 or above.

Impact 6.3 MEDIUM

CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:N/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-390: Detection of Error Condition Without Action

Source file

go/github.com/cli/cli/v2/CVE-2025-25204.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:39 +0000.