GHSA-w6c6-c85g-mmv6
Cosign's verify-blob-attestation reports false positive when payload parsing fails
Quick fix
GHSA-w6c6-c85g-mmv6 — github.com/sigstore/cosign/v3: upgrade to the fixed version with the command below.
go get github.com/sigstore/cosign/v3@v3.0.6Details
## Description
`cosign verify-blob-attestation` may erroneously report a "Verified OK" result for attestations with malformed payloads or mismatched predicate types. For old-format bundles and detached signatures, this was due to a logic flaw in the error handling of the predicate type validation. For new-format bundles, the predicate type validation was bypassed completely.
## Impact
When `cosign verify-blob-attestation` is used without `--check-claims` set to `true`, an attestation that has a valid signature but a malformed or unparsable payload would be incorrectly validated. Additionally, systems relying on `--type <predicate type>` to reject attestations with mismatched types would be lead to trust the unexpected attestation type.
## Patches
v3.0.6, v2.6.3
## Workarounds
Always set `--check-claims=true` for attestation verification.
Are you affected?
Enter the version of the package you're using.
Affected packages
3.0.0Fixed in: 3.0.6go get github.com/sigstore/cosign/v3@v3.0.60Fixed in: 2.6.3go get github.com/sigstore/cosign/v2@v2.6.30No fixed version published yet for github.com/sigstore/cosign (go modules). Pin to a known-safe version or switch to an alternative.
References
- https://github.com/sigstore/cosign/security/advisories/GHSA-w6c6-c85g-mmv6[WEB]
- https://nvd.nist.gov/vuln/detail/CVE-2026-39395[ADVISORY]
- https://github.com/sigstore/cosign/pull/4801[WEB]
- https://github.com/sigstore/cosign/commit/f1ad3ee952313be5d74a49d67ba0aa8d0d5e351f[WEB]
- https://github.com/sigstore/cosign[PACKAGE]
- https://github.com/sigstore/cosign/releases/tag/v2.6.3[WEB]
- https://github.com/sigstore/cosign/releases/tag/v3.0.6[WEB]
Check it before you install it
One call answers whether to add this package: known advisories, CISA KEV, and whether the name is a hallucinated or freshly squatted one. No key needed to try it.
curl -s https://vdb.ai.kr/v1/ai/check-packages \
-H 'Content-Type: application/json' \
-d '{"packages":["pkg:golang/github.com/sigstore/cosign/v3"]}'