{"id":"GHSA-8984-84r5-8mvx","aliases":["DHI-qnvt-77pp-5ze2-oo5u"],"status":"published","description":"With the new bundle format, `cosign verify` reports an image as signed when the only thing\r\nattached to it is an attestation from the trusted signer, for example an SPDX SBOM attestation.\r\nWe reproduced it with cosign v3.0.6 and v3.1.3, key-based, against a local registry:\r\n\r\n```\r\ncosign generate-key-pair\r\ndocker push localhost:5000/t/img:1        # any image; take its digest D\r\ncosign verify --key cosign.pub --insecure-ignore-tlog=true --allow-insecure-registry localhost:5000/t/img@D\r\n#   -\u003e exit 10, no signatures found\r\ncosign attest --yes --key cosign.key --use-signing-config=false --tlog-upload=false \\\r\n  --allow-insecure-registry --type spdxjson --predicate sbom.json localhost:5000/t/img@D\r\ncosign verify --key cosign.pub --insecure-ignore-tlog=true --allow-insecure-registry localhost:5000/t/img@D\r\n#   -\u003e exit 0, \"The cosign claims were validated\"\r\ncosign verify-attestation --key cosign.pub --insecure-ignore-tlog=true --allow-insecure-registry \\\r\n  --type https://sigstore.dev/cosign/sign/v1 localhost:5000/t/img@D\r\n#   -\u003e exit 1, none of the attestations matched the predicate type\r\n```\r\n\r\nThe image's one referrer is a bundle v0.3 with a DSSE envelope whose predicateType is\r\nhttps://spdx.dev/Document. cosign 3's own signatures are DSSE bundles with predicateType\r\nhttps://sigstore.dev/cosign/sign/v1 under the same artifactType, and the signature path appears\r\nnot to check the predicate type (GetBundles lists referrers without a filter; issue #5154\r\ndescribes the same path as a download-cost problem).\r\n\r\nConsequence: a policy admitting images signed by an identity also admits images that identity\r\nonly attested, for example SBOM or scan attestations a CI identity makes for builds it does not\r\nendorse, or an organisation-wide identity regexp covering such a workflow. We have not tested the\r\nkeyless path, Kyverno or policy-controller.\r\n\r\nA fix would be to accept, on the signature path, only bundles whose statement predicateType is\r\nthe cosign signature type (and, for bundles without the annotation, to read the predicate type\r\nfrom the envelope before accepting it).\r\n\r\nWe found this while building signed releases for Polaris (https://github.com/EgorKhaklin/polaris-id).\r\nWe are glad to test a fix.\r\n\r\nEgor Khaklin, Khaklin Technologies","facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"published":"2026-12-04T14:13:52Z","modified":"2026-12-04T14:30:08Z","affected":[{"source":"osv","ecosystem":"Docker Hardened Images:Alpine:3.23","package":"cosign-2-dev","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.6.2-r0"}]}],"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"]},{"source":"osv","ecosystem":"Docker Hardened Images:Alpine:3.23","package":"cosign-2-fips-dev","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.6.2-r0"}]}],"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"]},{"source":"osv","ecosystem":"Docker Hardened Images:Alpine:3.23","package":"cosign-2-fips","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.6.2-r0"}]}],"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"]},{"source":"osv","ecosystem":"Docker Hardened Images:Alpine:3.23","package":"cosign-2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.6.2-r0"}]}],"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"]},{"source":"osv","ecosystem":"Docker Hardened Images:Alpine:3.23","package":"cosign-3-dev","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.0.4-r0"}]}],"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","3.1.5-r0","3.1.6-r0"]},{"source":"osv","ecosystem":"Docker Hardened Images:Alpine:3.23","package":"cosign-3-fips-dev","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.0.4-r0"}]}],"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","3.1.5-r0","3.1.6-r0"]},{"source":"osv","ecosystem":"Docker Hardened Images:Alpine:3.23","package":"cosign-3-fips","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.0.4-r0"}]}],"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","3.1.5-r0","3.1.6-r0"]},{"source":"osv","ecosystem":"Docker Hardened Images:Alpine:3.23","package":"cosign-3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.0.4-r0"}]}],"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","3.1.5-r0","3.1.6-r0"]}],"references":[{"url":"https://scout.docker.com/v/DHI-qnvt-77pp-5ze2-oo5u","tags":["advisory"]},{"url":"https://github.com/sigstore/cosign/security/advisories/GHSA-8984-84r5-8mvx","tags":["advisory"]}],"sources":{"osv":[{"id":"DHI-qnvt-77pp-5ze2-oo5u","upstream":["GHSA-8984-84r5-8mvx"],"title":"With the new bundle format, `cosign verify` reports an image as signed when the only thing","description":"With the new bundle format, `cosign verify` reports an image as signed when the only thing\r\nattached to it is an attestation from the trusted signer, for example an SPDX SBOM attestation.\r\nWe reproduced it with cosign v3.0.6 and v3.1.3, key-based, against a local registry:\r\n\r\n```\r\ncosign generate-key-pair\r\ndocker push localhost:5000/t/img:1        # any image; take its digest D\r\ncosign verify --key cosign.pub --insecure-ignore-tlog=true --allow-insecure-registry localhost:5000/t/img@D\r\n#   -\u003e exit 10, no signatures found\r\ncosign attest --yes --key cosign.key --use-signing-config=false --tlog-upload=false \\\r\n  --allow-insecure-registry --type spdxjson --predicate sbom.json localhost:5000/t/img@D\r\ncosign verify --key cosign.pub --insecure-ignore-tlog=true --allow-insecure-registry localhost:5000/t/img@D\r\n#   -\u003e exit 0, \"The cosign claims were validated\"\r\ncosign verify-attestation --key cosign.pub --insecure-ignore-tlog=true --allow-insecure-registry \\\r\n  --type https://sigstore.dev/cosign/sign/v1 localhost:5000/t/img@D\r\n#   -\u003e exit 1, none of the attestations matched the predicate type\r\n```\r\n\r\nThe image's one referrer is a bundle v0.3 with a DSSE envelope whose predicateType is\r\nhttps://spdx.dev/Document. cosign 3's own signatures are DSSE bundles with predicateType\r\nhttps://sigstore.dev/cosign/sign/v1 under the same artifactType, and the signature path appears\r\nnot to check the predicate type (GetBundles lists referrers without a filter; issue #5154\r\ndescribes the same path as a download-cost problem).\r\n\r\nConsequence: a policy admitting images signed by an identity also admits images that identity\r\nonly attested, for example SBOM or scan attestations a CI identity makes for builds it does not\r\nendorse, or an organisation-wide identity regexp covering such a workflow. We have not tested the\r\nkeyless path, Kyverno or policy-controller.\r\n\r\nA fix would be to accept, on the signature path, only bundles whose statement predicateType is\r\nthe cosign signature type (and, for bundles without the annotation, to read the predicate type\r\nfrom the envelope before accepting it).\r\n\r\nWe found this while building signed releases for Polaris (https://github.com/EgorKhaklin/polaris-id).\r\nWe are glad to test a fix.\r\n\r\nEgor Khaklin, Khaklin Technologies","status":"published","published":"2026-12-04T14:13:52Z","modified":"2026-12-04T14:30:08.427464077Z","updated_at":"2026-12-04T14:45:23.964298Z"}]}}
