CVE-2022-35929False positive signature verification in cosign
cosign is a container signing and verification utility. In versions prior to 1.10.1 cosign can report a false positive if any attestation exists. `cosign verify-attestation` used with the `--type` flag will report a false positive verification when there is at least one attestation with a valid signature and there are NO attestations of the type being verified (--type defaults to "custom"). This can happen when signing with a standard keypair and with "keyless" signing with Fulcio. This vulnerability can be reproduced with the `distroless.dev/static@sha256:dd7614b5a12bc4d617b223c588b4e0c833402b8f4991fb5702ea83afad1986e2` image. This image has a `vuln` attestation but not an `spdx` attestation. However, if you run `cosign verify-attestation --type=spdx` on this image, it incorrectly succeeds. This issue has been addressed in version 1.10.1 of cosign. Users are advised to upgrade. There are no known workarounds for this issue.
What to do
Fixed builds are available from Alpine, Go: see the table below for the fixed version per release.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Alpine Linux 3.24 | cosign | Fixed | 1.10.1-r0 | ALPINE-CVE-2022-35929 |
| Alpine Linux 3.23 | cosign | Fixed | 1.10.1-r0 | ALPINE-CVE-2022-35929 |
| Alpine Linux 3.22 | cosign | Fixed | 1.10.1-r0 | ALPINE-CVE-2022-35929 |
| Alpine Linux 3.21 | cosign | Fixed | 1.10.1-r0 | ALPINE-CVE-2022-35929 |
| Alpine Linux 3.20 | cosign | Fixed | 1.10.1-r0 | ALPINE-CVE-2022-35929 |
| Alpine Linux 3.19 | cosign | Fixed | 1.10.1-r0 | ALPINE-CVE-2022-35929 |
| Alpine Linux 3.18 | cosign | Fixed | 1.10.1-r0 | ALPINE-CVE-2022-35929 |
| Alpine Linux 3.17 | cosign | Fixed | 1.10.1-r0 | ALPINE-CVE-2022-35929 |
| Alpine Linux 3.16 | cosign | Fixed | 1.10.1-r0 | ALPINE-CVE-2022-35929 |
| Go library | github.com/sigstore/cosign | Fixed | 1.10.1 | GHSA-vjxv-45g9-9296 |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- sigstore cosign: affected: < 1.10.1
References
- https://github.com/sigstore/cosign/security/advisories/GHSA-vjxv-45g9-9296
- https://github.com/sigstore/cosign/commit/c5fda01a8ff33ca981f45a9f13e7fb6bd2080b94
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.