Log date · Thu
Does cosign verification success mean a release is trusted?
Verification must enforce the intended key or identity. Upgrade cosign and test that an unexpected signer is rejected.
What does a successful verification establish?
A successful signature check supports a release decision only when the verifier enforces the intended trusted key or identity policy. In our small Go experiment, the same signature returned true with its signer’s public key and false with a different, preselected trusted key. Changing the content also returned false.
That distinction explains the cosign legacy-bundle advisory published on August 6, 2026: an affected verification path could report success while skipping identity constraints, and could even override a public key supplied with --key. [2]
| Question | Finding |
|---|---|
| Signer’s own public key? | Original content verifies true. |
| A different preselected trusted key? | The same signature verifies false. |
| Changed content? | Verification with the signer’s key is false. |
| What should cosign users do? | Upgrade affected versions, migrate bundles and add negative tests. |
Which verification paths were affected?
Sigstore released v3.1.3 at 01:09 UTC on 2026-08-06, after v2.6.5 earlier that day. Advisory GHSA-fx35-mq7g-6g98 is rated High, with a CVSS 3.1 score of 7.4 and no known CVE listed. [1][2]
The advisory says that in v2 through 2.6.4 and v3 through 3.1.2, verify-blob and verify-blob-attestation could treat a legacy JSON bundle’s cert field as a raw public key when X.509 parsing failed. Subsequent certificate-chain and identity-policy checks were skipped, and an explicit --key could be overwritten by the bundle key. OCI image verification and standardized protobuf bundle verification are outside this issue’s affected paths. [2]
This is a change in the trust input used by verification, not a failure of the signature algorithm. The advisory’s scenario requires someone to verify an attacker-supplied bundle. When CI consumes external artifacts automatically, examine who can control both the artifact and its bundle.
Two keys illustrate the trust boundary
Cosign is not in the available toolchain. We used Go 1.26.2 and its Ed25519 standard library with our own text and two fixed test seeds to illustrate the principle; this is not a test of a cosign release, certificate chain or the vulnerability. Fixed seeds are suitable only for this public sample, never for real keys. [4]
We signed with the second private key, then supplied first its corresponding public key and then the preselected first key. Finally we changed only the text and retained the signature and second public key. These three results are copied from the run.
other key verifies original: true
trusted key verifies original: false
other key verifies changed: falseThe first line establishes a match between the supplied public key, signature and content; it does not establish that the key belongs to the intended publisher. The second illustrates why selecting a trusted key matters, while the third shows binding to content. A certificate identity system must also validate the chain, identity and issuer; these are separate checks.
Recommendations for each pipeline
These are engineering recommendations based on the advisory and verification guide, not repair effects measured by our experiment. Before migration, record the artifact format, verification command and signer policy, then validate existing artifacts in an isolated environment. [2][3]
| Case | Recommendation |
|---|---|
| Legacy JSON bundle and affected version | Upgrade to v2.6.5 or v3.1.3 and migrate to standardized bundles. |
| Identity and OIDC policy | Pin the expected identity and issuer; test rejection of the wrong identity. |
| Explicit trusted public key | Supply the key from a controlled location; test rejection of another signer. |
| OCI image or standardized protobuf bundle | These paths are not affected by this advisory; still update and test policy. |
The advisory recommends upgrading legacy bundles with cosign bundle create and verifying with --new-bundle-format. [2] Conversion does not replace checks on provenance, identity and release policy: run the complete pipeline against both trusted and untrusted samples and confirm failure prevents downstream consumption.
Check your own release pipeline
Start with the CI image and scripts that actually verify releases, not just the version on a developer’s laptop. The search below finds relevant calls in the current project; also inspect shared workflows, container images and pinned build dependencies.
cosign version
rg -n "verify-blob|verify-blob-attestation|--bundle|--key" .Sigstore documents this form for verifying a file with a bundle, identity and issuer. [3] Replace the placeholders with your own expected values and check format options against the installed version’s help. Do not obtain the trusted identity from the bundle being verified.
cosign verify-blob release.tar.gz --bundle artifact.sigstore.json \
--certificate-identity=release@example.com \
--certificate-oidc-issuer=https://accounts.example.comIn a test environment prepare an artifact signed by the expected identity and one signed by a different identity. The first must pass and the second must fail; also alter one byte of the first and confirm failure. Retain the version, command and exit status as release evidence. Repeat these checks after an upgrade or format migration, rather than checking only that the tool starts.
Your checklist
- Inventory cosign versions and blob verification calls in CI.
- Upgrade affected versions to a patched release.
- Identify bundle formats and plan migration.
- Pin trusted identity, issuer or public key.
- Test that a wrong signer and changed content fail.
Primary sources
- GitHub: sigstore/cosign release v3.1.3 · Source date 2026-08-06 · Checked 2026-10-12
- GitHub Security Advisory: GHSA-fx35-mq7g-6g98 Verification bypass via public key in legacy bundle · Source date 2026-08-06 · Checked 2026-10-12
- Sigstore: Verifying Signatures · Checked 2026-11-11
- Go: crypto/ed25519 · Checked 2026-11-11