Snyk has a proof-of-concept or detailed explanation of how to exploit this vulnerability.
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 applicationsUpgrade github.com/cli/cli/pkg/cmd/attestation/verify
to version 2.67.0 or higher.
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.
#!/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"