6.3

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

Deferred
AliasesUBUNTU-CVE-2025-25204CGA-cw5w-hcjr-w328CGA-hh4g-995c-759v
Published 14-02-2025Last modified 03-03-2025

Vulnerability summary

CVE-2025-25204 is a medium (CVSS 6.3) vulnerability in cli. EPSS estimates a 0.42% chance of exploitation in the next 30 days, higher than 38% of scored vulnerabilities.

Priority
Routine

Not severe (CVSS 6.3, network access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
6.3/10
010
Medium · v3.1 (CVE.org)
EPSS score
0.42%
0%100%
Low · +0.01 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 1 · Related 3

Timeline

  1. 14-02-2025
    PublishedVulnerability first disclosed.
  2. 03-03-2025
    Last modifiedVulnerability information updated.

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.

CVSS metrics

6 scores · 6 sources · 1 version

EPSS trend

Probability

0.42%

Chance of exploitation in the next 30 days

Percentile

38%

Versus all other CVEs

30-day change

Increase +0.01 pp

From 0.41% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.

Chainguard1 product
  • gh< 2.67.0-r0
Cli1 product
  • cli≥ 2.49.0, < 2.67.0
Github.com/cli1 product
  • cliAll versions (No fix recorded)
Github.com/cli/cli1 product
  • v2≥ 2.49.0, < 2.67.0
Ubuntu1 product
  • ghAll versions (No fix recorded)
Wolfi1 product
  • gh< 2.67.0-r0

6 vendors · 6 products

References

8 links