Detection of Error Condition Without Action Affecting github.com/cli/cli/pkg/cmd/attestation/verify package, versions >=2.49.0 <2.67.0


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept

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-GOLANG-GITHUBCOMCLICLIPKGCMDATTESTATIONVERIFY-8730839
  • published16 Feb 2025
  • disclosed14 Feb 2025
  • creditJared Lueck

Introduced: 14 Feb 2025

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

How to fix?

Upgrade github.com/cli/cli/pkg/cmd/attestation/verify to version 2.67.0 or higher.

Overview

Affected versions of this package are vulnerable to Detection of Error Condition Without Action via the gh attestation verify process. An attacker can deploy malicious artifacts in systems that rely on the exit status codes of this process to control deployments.

PoC

#!/bin/bash

# Run a command
gh attestation verify oci://ghcr.io/repo:5.20.6 --repo repo --signer-repo signer-repo --predicate-type https://slsa.dev/provenance/v1

# Capture the exit code
exit_code=$?

# Show the exit code
echo "Exit code: $exit_code"

CVSS Scores

version 4.0
version 3.1