GHSA-8984-84r5-8mvx
With the new bundle format, cosign verify reports an image as signed when the only thing attached to it is an…
- Scores
- UnknownNo source reports a CVSS or EPSS score yet.
- Exploitation
- UnknownNo source reports exploitation yet.
- Listed fix
- None listedNo source lists a fixed version in its version data.Check the description and references.
Overview
With the new bundle format, cosign verify reports an image as signed when the only thing
attached to it is an attestation from the trusted signer, for example an SPDX SBOM attestation.
We reproduced it with cosign v3.0.6 and v3.1.3, key-based, against a local registry:
cosign generate-key-pair
docker push localhost:5000/t/img:1 # any image; take its digest D
cosign verify --key cosign.pub --insecure-ignore-tlog=true --allow-insecure-registry localhost:5000/t/img@D
# -> exit 10, no signatures found
cosign attest --yes --key cosign.key --use-signing-config=false --tlog-upload=false \
--allow-insecure-registry --type spdxjson --predicate sbom.json localhost:5000/t/img@D
cosign verify --key cosign.pub --insecure-ignore-tlog=true --allow-insecure-registry localhost:5000/t/img@D
# -> exit 0, "The cosign claims were validated"
cosign verify-attestation --key cosign.pub --insecure-ignore-tlog=true --allow-insecure-registry \
--type https://sigstore.dev/cosign/sign/v1 localhost:5000/t/img@D
# -> exit 1, none of the attestations matched the predicate type
The image's one referrer is a bundle v0.3 with a DSSE envelope whose predicateType is https://spdx.dev/Document. cosign 3's own signatures are DSSE bundles with predicateType https://sigstore.dev/cosign/sign/v1 under the same artifactType, and the signature path appears not to check the predicate type (GetBundles lists referrers without a filter; issue #5154 describes the same path as a download-cost problem).
Consequence: a policy admitting images signed by an identity also admits images that identity only attested, for example SBOM or scan attestations a CI identity makes for builds it does not endorse, or an organisation-wide identity regexp covering such a workflow. We have not tested the keyless path, Kyverno or policy-controller.
A fix would be to accept, on the signature path, only bundles whose statement predicateType is the cosign signature type (and, for bundles without the annotation, to read the predicate type from the envelope before accepting it).
We found this while building signed releases for Polaris (https://github.com/EgorKhaklin/polaris-id). We are glad to test a fix.
Egor Khaklin, Khaklin Technologies
Affected
Packages 8
| Package | Affected | Fixed |
|---|---|---|
cosign-2-devDocker Hardened Images:Alpine:3.23 | 2.6.2-r0 and later, plus listed versions 2.6.2-r12.6.2-r22.6.2-r32.6.3-r02.6.3-r1 Show 26 more versionsShow less2.6.3-r102.6.3-r22.6.3-r32.6.3-r42.6.3-r52.6.3-r62.6.3-r72.6.3-r82.6.3-r92.6.4-r02.6.4-r12.6.5-r02.6.5-r12.6.5-r102.6.5-r112.6.5-r122.6.5-r132.6.5-r142.6.5-r22.6.5-r32.6.5-r42.6.5-r52.6.5-r62.6.5-r72.6.5-r82.6.5-r9 | None listed |
cosign-2-fips-devDocker Hardened Images:Alpine:3.23 | 2.6.2-r0 and later, plus listed versions 2.6.2-r12.6.2-r22.6.2-r32.6.3-r02.6.3-r1 Show 26 more versionsShow less2.6.3-r102.6.3-r22.6.3-r32.6.3-r42.6.3-r52.6.3-r62.6.3-r72.6.3-r82.6.3-r92.6.4-r02.6.4-r12.6.5-r02.6.5-r12.6.5-r102.6.5-r112.6.5-r122.6.5-r132.6.5-r142.6.5-r22.6.5-r32.6.5-r42.6.5-r52.6.5-r62.6.5-r72.6.5-r82.6.5-r9 | None listed |
cosign-2-fipsDocker Hardened Images:Alpine:3.23 | 2.6.2-r0 and later, plus listed versions 2.6.2-r12.6.2-r22.6.2-r32.6.3-r02.6.3-r1 Show 26 more versionsShow less2.6.3-r102.6.3-r22.6.3-r32.6.3-r42.6.3-r52.6.3-r62.6.3-r72.6.3-r82.6.3-r92.6.4-r02.6.4-r12.6.5-r02.6.5-r12.6.5-r102.6.5-r112.6.5-r122.6.5-r132.6.5-r142.6.5-r22.6.5-r32.6.5-r42.6.5-r52.6.5-r62.6.5-r72.6.5-r82.6.5-r9 | None listed |
cosign-2Docker Hardened Images:Alpine:3.23 | 2.6.2-r0 and later, plus listed versions 2.6.2-r12.6.2-r22.6.2-r32.6.3-r02.6.3-r1 Show 26 more versionsShow less2.6.3-r102.6.3-r22.6.3-r32.6.3-r42.6.3-r52.6.3-r62.6.3-r72.6.3-r82.6.3-r92.6.4-r02.6.4-r12.6.5-r02.6.5-r12.6.5-r102.6.5-r112.6.5-r122.6.5-r132.6.5-r142.6.5-r22.6.5-r32.6.5-r42.6.5-r52.6.5-r62.6.5-r72.6.5-r82.6.5-r9 | None listed |
cosign-3-devDocker Hardened Images:Alpine:3.23 | 3.0.4-r0 and later, plus listed versions 3.0.5-r03.0.5-r13.0.5-r23.0.5-r33.0.6-r0 Show 33 more versionsShow less3.0.6-r13.0.6-r23.0.6-r33.0.6-r43.0.6-r53.0.6-r63.1.1-r03.1.1-r13.1.1-r23.1.2-r03.1.2-r13.1.3-r03.1.3-r13.1.3-r103.1.3-r113.1.3-r123.1.3-r133.1.3-r23.1.3-r33.1.3-r43.1.3-r53.1.3-r63.1.3-r73.1.3-r83.1.3-r93.1.4-r03.1.4-r13.1.4-r23.1.4-r33.1.4-r43.1.4-r53.1.5-r03.1.6-r0 | None listed |
cosign-3-fips-devDocker Hardened Images:Alpine:3.23 | 3.0.4-r0 and later, plus listed versions 3.0.5-r03.0.5-r13.0.5-r23.0.5-r33.0.6-r0 Show 33 more versionsShow less3.0.6-r13.0.6-r23.0.6-r33.0.6-r43.0.6-r53.0.6-r63.1.1-r03.1.1-r13.1.1-r23.1.2-r03.1.2-r13.1.3-r03.1.3-r13.1.3-r103.1.3-r113.1.3-r123.1.3-r133.1.3-r23.1.3-r33.1.3-r43.1.3-r53.1.3-r63.1.3-r73.1.3-r83.1.3-r93.1.4-r03.1.4-r13.1.4-r23.1.4-r33.1.4-r43.1.4-r53.1.5-r03.1.6-r0 | None listed |
cosign-3-fipsDocker Hardened Images:Alpine:3.23 | 3.0.4-r0 and later, plus listed versions 3.0.5-r03.0.5-r13.0.5-r23.0.5-r33.0.6-r0 Show 33 more versionsShow less3.0.6-r13.0.6-r23.0.6-r33.0.6-r43.0.6-r53.0.6-r63.1.1-r03.1.1-r13.1.1-r23.1.2-r03.1.2-r13.1.3-r03.1.3-r13.1.3-r103.1.3-r113.1.3-r123.1.3-r133.1.3-r23.1.3-r33.1.3-r43.1.3-r53.1.3-r63.1.3-r73.1.3-r83.1.3-r93.1.4-r03.1.4-r13.1.4-r23.1.4-r33.1.4-r43.1.4-r53.1.5-r03.1.6-r0 | None listed |
cosign-3Docker Hardened Images:Alpine:3.23 | 3.0.4-r0 and later, plus listed versions 3.0.5-r03.0.5-r13.0.5-r23.0.5-r33.0.6-r0 Show 33 more versionsShow less3.0.6-r13.0.6-r23.0.6-r33.0.6-r43.0.6-r53.0.6-r63.1.1-r03.1.1-r13.1.1-r23.1.2-r03.1.2-r13.1.3-r03.1.3-r13.1.3-r103.1.3-r113.1.3-r123.1.3-r133.1.3-r23.1.3-r33.1.3-r43.1.3-r53.1.3-r63.1.3-r73.1.3-r83.1.3-r93.1.4-r03.1.4-r13.1.4-r23.1.4-r33.1.4-r43.1.4-r53.1.5-r03.1.6-r0 | None listed |
Sources
OSVDHI-qnvt-77pp-5ze2-oo5uNo score
With the new bundle format, `cosign verify` reports an image as signed when the only thing
With the new bundle format, cosign verify reports an image as signed when the only thing
attached to it is an attestation from the trusted signer, for example an SPDX SBOM attestation.
We reproduced it with cosign v3.0.6 and v3.1.3, key-based, against a local registry:
cosign generate-key-pair
docker push localhost:5000/t/img:1 # any image; take its digest D
cosign verify --key cosign.pub --insecure-ignore-tlog=true --allow-insecure-registry localhost:5000/t/img@D
# -> exit 10, no signatures found
cosign attest --yes --key cosign.key --use-signing-config=false --tlog-upload=false \
--allow-insecure-registry --type spdxjson --predicate sbom.json localhost:5000/t/img@D
cosign verify --key cosign.pub --insecure-ignore-tlog=true --allow-insecure-registry localhost:5000/t/img@D
# -> exit 0, "The cosign claims were validated"
cosign verify-attestation --key cosign.pub --insecure-ignore-tlog=true --allow-insecure-registry \
--type https://sigstore.dev/cosign/sign/v1 localhost:5000/t/img@D
# -> exit 1, none of the attestations matched the predicate type
The image's one referrer is a bundle v0.3 with a DSSE envelope whose predicateType is https://spdx.dev/Document. cosign 3's own signatures are DSSE bundles with predicateType https://sigstore.dev/cosign/sign/v1 under the same artifactType, and the signature path appears not to check the predicate type (GetBundles lists referrers without a filter; issue #5154 describes the same path as a download-cost problem).
Consequence: a policy admitting images signed by an identity also admits images that identity only attested, for example SBOM or scan attestations a CI identity makes for builds it does not endorse, or an organisation-wide identity regexp covering such a workflow. We have not tested the keyless path, Kyverno or policy-controller.
A fix would be to accept, on the signature path, only bundles whose statement predicateType is the cosign signature type (and, for bundles without the annotation, to read the predicate type from the envelope before accepting it).
We found this while building signed releases for Polaris (https://github.com/EgorKhaklin/polaris-id). We are glad to test a fix.
Egor Khaklin, Khaklin Technologies
- Record
DHI-qnvt-77pp-5ze2-oo5u- Updated
- 2026-12-04
History
Recorded by Every CVE
| Day | Changed | Sources |
|---|---|---|
| First indexed | OSV |
Upstream dates may differ.