{"id":"DHI-n3qf-acnp-cnt2-gk6d","summary":"## Description","details":"## Description\r\n\r\nIn `cosign verify-blob` and `cosign verify-blob-attestation`, keyless verification using `--certificate-identity` and `--certificate-oidc-issuer` (or their regular expression equivalents) can be bypassed when a legacy JSON `--bundle` is supplied.\r\n\r\nNote that this does not affect verification with the [newer standardized bundle format](https://docs.sigstore.dev/about/bundle/), the default in Cosign v3.\r\n\r\nWhen reading the `cert` field of a legacy bundle, if the contents failed to parse as an X.509 certificate, Cosign silently fell back to loading the input as a raw public key and populated `co.SigVerifier`. In downstream verification, whenever `co.SigVerifier` is set, X.509 certificate chain validation and policy enforcement (`CheckCertificatePolicy`) are skipped. As a result, `--certificate-identity` and `--certificate-oidc-issuer` flags are ignored, and verification succeeds as long as the signature is cryptographically valid for the embedded public key.\r\n\r\nAdditionally, because the fallback unconditionally assigned to `co.SigVerifier`, if an operator passed an explicitly trusted `--key` alongside a legacy bundle containing a public key, the public key embedded in the bundle would overwrite the key provided via `--key`.\r\n\r\n### Affected Commands & Formats\r\n\r\n* **Affected**: `cosign verify-blob` and `cosign verify-blob-attestation` when verifying legacy JSON bundles (`LocalSignedPayload`).\r\n* **Not Affected**: \r\n  * OCI container image verification (`cosign verify` and `cosign verify-attestation`).\r\n  * Verification using the modern Sigstore protobuf bundle format (`--new-bundle-format`, e.g., `application/vnd.dev.sigstore.bundle+json`).\r\n \r\n## Impact\r\n\r\nAn attacker can bypass keyless identity and OIDC issuer pinning in `cosign verify-blob` and `cosign verify-blob-attestation` by shipping a legacy bundle whose `cert` field contains an arbitrary bare public key (`-----BEGIN PUBLIC KEY-----`) instead of a Fulcio X.509 certificate. \r\n\r\n* **False assurance of identity enforcement**: Verification completes with exit code `0` and reports `Verified OK`, causing operators or CI/CD pipelines to trust and consume artifacts signed by an unauthorized key.\r\n* **Key override**: If an operator explicitly specifies `--key` while verifying against a legacy bundle containing a bare public key, the attacker's bundle key silently overrides `--key`.\r\n\r\n## Patches\r\n\r\nUpgrade to v3.1.3 or v2.6.5.\r\n\r\n## Workarounds\r\n\r\n**Adopt the Standardized Protobuf Bundle Format**:\r\n\r\nMigrate from legacy JSON bundles to the modern Sigstore protobuf bundle format (`--new-bundle-format`). The protobuf bundle verification engine is not affected by this vulnerability. You can upgrade bundles with `cosign bundle create`.","modified":"2026-11-18T20:03:32.941472155Z","published":"2026-11-11T15:44:14Z","upstream":["GHSA-fx35-mq7g-6g98"],"references":[{"type":"ADVISORY","url":"https://scout.docker.com/v/DHI-n3qf-acnp-cnt2-gk6d"},{"type":"ADVISORY","url":"https://github.com/sigstore/cosign/security/advisories/GHSA-fx35-mq7g-6g98"}],"affected":[{"package":{"name":"cosign-2-dev","ecosystem":"Docker Hardened Images:Alpine:3.23","purl":"pkg:apk/dhi/cosign-2-dev"},"versions":["2.6.2-r0","2.6.2-r1","2.6.2-r2","2.6.2-r3","2.6.3-r0","2.6.3-r1","2.6.3-r10","2.6.3-r2","2.6.3-r3","2.6.3-r4","2.6.3-r5","2.6.3-r6","2.6.3-r7","2.6.3-r8","2.6.3-r9","2.6.4-r0","2.6.4-r1","2.6.5-r0","2.6.5-r1","2.6.5-r10","2.6.5-r11","2.6.5-r12","2.6.5-r13","2.6.5-r14","2.6.5-r2","2.6.5-r3","2.6.5-r4","2.6.5-r5","2.6.5-r6","2.6.5-r7","2.6.5-r8","2.6.5-r9"],"database_specific":{"owner_kind":"HSP","source":"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-n3qf-acnp-cnt2-gk6d.json"}},{"package":{"name":"cosign-2-fips-dev","ecosystem":"Docker Hardened Images:Alpine:3.23","purl":"pkg:apk/dhi/cosign-2-fips-dev"},"versions":["2.6.2-r0","2.6.2-r1","2.6.2-r2","2.6.2-r3","2.6.3-r0","2.6.3-r1","2.6.3-r10","2.6.3-r2","2.6.3-r3","2.6.3-r4","2.6.3-r5","2.6.3-r6","2.6.3-r7","2.6.3-r8","2.6.3-r9","2.6.4-r0","2.6.4-r1","2.6.5-r0","2.6.5-r1","2.6.5-r10","2.6.5-r11","2.6.5-r12","2.6.5-r13","2.6.5-r14","2.6.5-r2","2.6.5-r3","2.6.5-r4","2.6.5-r5","2.6.5-r6","2.6.5-r7","2.6.5-r8","2.6.5-r9"],"database_specific":{"owner_kind":"HSP","source":"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-n3qf-acnp-cnt2-gk6d.json"}},{"package":{"name":"cosign-2-fips","ecosystem":"Docker Hardened Images:Alpine:3.23","purl":"pkg:apk/dhi/cosign-2-fips"},"versions":["2.6.2-r0","2.6.2-r1","2.6.2-r2","2.6.2-r3","2.6.3-r0","2.6.3-r1","2.6.3-r10","2.6.3-r2","2.6.3-r3","2.6.3-r4","2.6.3-r5","2.6.3-r6","2.6.3-r7","2.6.3-r8","2.6.3-r9","2.6.4-r0","2.6.4-r1","2.6.5-r0","2.6.5-r1","2.6.5-r10","2.6.5-r11","2.6.5-r12","2.6.5-r13","2.6.5-r14","2.6.5-r2","2.6.5-r3","2.6.5-r4","2.6.5-r5","2.6.5-r6","2.6.5-r7","2.6.5-r8","2.6.5-r9"],"database_specific":{"owner_kind":"HSP","source":"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-n3qf-acnp-cnt2-gk6d.json"}},{"package":{"name":"cosign-2","ecosystem":"Docker Hardened Images:Alpine:3.23","purl":"pkg:apk/dhi/cosign-2"},"versions":["2.6.2-r0","2.6.2-r1","2.6.2-r2","2.6.2-r3","2.6.3-r0","2.6.3-r1","2.6.3-r10","2.6.3-r2","2.6.3-r3","2.6.3-r4","2.6.3-r5","2.6.3-r6","2.6.3-r7","2.6.3-r8","2.6.3-r9","2.6.4-r0","2.6.4-r1","2.6.5-r0","2.6.5-r1","2.6.5-r10","2.6.5-r11","2.6.5-r12","2.6.5-r13","2.6.5-r14","2.6.5-r2","2.6.5-r3","2.6.5-r4","2.6.5-r5","2.6.5-r6","2.6.5-r7","2.6.5-r8","2.6.5-r9"],"database_specific":{"owner_kind":"HSP","source":"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-n3qf-acnp-cnt2-gk6d.json"}},{"package":{"name":"cosign-3-dev","ecosystem":"Docker Hardened Images:Alpine:3.23","purl":"pkg:apk/dhi/cosign-3-dev"},"versions":["3.0.4-r0","3.0.5-r0","3.0.5-r1","3.0.5-r2","3.0.5-r3","3.0.6-r0","3.0.6-r1","3.0.6-r2","3.0.6-r3","3.0.6-r4","3.0.6-r5","3.0.6-r6","3.1.1-r0","3.1.1-r1","3.1.1-r2","3.1.2-r0","3.1.2-r1","3.1.3-r0","3.1.3-r1","3.1.3-r10","3.1.3-r11","3.1.3-r12","3.1.3-r13","3.1.3-r2","3.1.3-r3","3.1.3-r4","3.1.3-r5","3.1.3-r6","3.1.3-r7","3.1.3-r8","3.1.3-r9","3.1.4-r0","3.1.4-r1","3.1.4-r2","3.1.4-r3","3.1.4-r4","3.1.4-r5"],"database_specific":{"owner_kind":"HSP","source":"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-n3qf-acnp-cnt2-gk6d.json"}},{"package":{"name":"cosign-3-fips-dev","ecosystem":"Docker Hardened Images:Alpine:3.23","purl":"pkg:apk/dhi/cosign-3-fips-dev"},"versions":["3.0.4-r0","3.0.5-r0","3.0.5-r1","3.0.5-r2","3.0.5-r3","3.0.6-r0","3.0.6-r1","3.0.6-r2","3.0.6-r3","3.0.6-r4","3.0.6-r5","3.0.6-r6","3.1.1-r0","3.1.1-r1","3.1.1-r2","3.1.2-r0","3.1.2-r1","3.1.3-r0","3.1.3-r1","3.1.3-r10","3.1.3-r11","3.1.3-r12","3.1.3-r13","3.1.3-r2","3.1.3-r3","3.1.3-r4","3.1.3-r5","3.1.3-r6","3.1.3-r7","3.1.3-r8","3.1.3-r9","3.1.4-r0","3.1.4-r1","3.1.4-r2","3.1.4-r3","3.1.4-r4","3.1.4-r5"],"database_specific":{"owner_kind":"HSP","source":"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-n3qf-acnp-cnt2-gk6d.json"}},{"package":{"name":"cosign-3-fips","ecosystem":"Docker Hardened Images:Alpine:3.23","purl":"pkg:apk/dhi/cosign-3-fips"},"versions":["3.0.4-r0","3.0.5-r0","3.0.5-r1","3.0.5-r2","3.0.5-r3","3.0.6-r0","3.0.6-r1","3.0.6-r2","3.0.6-r3","3.0.6-r4","3.0.6-r5","3.0.6-r6","3.1.1-r0","3.1.1-r1","3.1.1-r2","3.1.2-r0","3.1.2-r1","3.1.3-r0","3.1.3-r1","3.1.3-r10","3.1.3-r11","3.1.3-r12","3.1.3-r13","3.1.3-r2","3.1.3-r3","3.1.3-r4","3.1.3-r5","3.1.3-r6","3.1.3-r7","3.1.3-r8","3.1.3-r9","3.1.4-r0","3.1.4-r1","3.1.4-r2","3.1.4-r3","3.1.4-r4","3.1.4-r5"],"database_specific":{"owner_kind":"HSP","source":"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-n3qf-acnp-cnt2-gk6d.json"}},{"package":{"name":"cosign-3","ecosystem":"Docker Hardened Images:Alpine:3.23","purl":"pkg:apk/dhi/cosign-3"},"versions":["3.0.4-r0","3.0.5-r0","3.0.5-r1","3.0.5-r2","3.0.5-r3","3.0.6-r0","3.0.6-r1","3.0.6-r2","3.0.6-r3","3.0.6-r4","3.0.6-r5","3.0.6-r6","3.1.1-r0","3.1.1-r1","3.1.1-r2","3.1.2-r0","3.1.2-r1","3.1.3-r0","3.1.3-r1","3.1.3-r10","3.1.3-r11","3.1.3-r12","3.1.3-r13","3.1.3-r2","3.1.3-r3","3.1.3-r4","3.1.3-r5","3.1.3-r6","3.1.3-r7","3.1.3-r8","3.1.3-r9","3.1.4-r0","3.1.4-r1","3.1.4-r2","3.1.4-r3","3.1.4-r4","3.1.4-r5"],"database_specific":{"owner_kind":"HSP","source":"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-n3qf-acnp-cnt2-gk6d.json"}}],"schema_version":"1.9.2"}