CVEfocus › CVE database › CVE-2022-35929

CVE-2022-35929False positive signature verification in cosign

CVSS 7.1 HighEPSS 0.6% (higher than 45% of CVEs)Published 2022-08-04Updated 2025-04-22Assigner: GitHub_M

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.

CWE-347

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

10Fixed

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.

ReleasePackageStatusFixed versionAdvisory
Alpine Linux 3.24cosignFixed1.10.1-r0ALPINE-CVE-2022-35929
Alpine Linux 3.23cosignFixed1.10.1-r0ALPINE-CVE-2022-35929
Alpine Linux 3.22cosignFixed1.10.1-r0ALPINE-CVE-2022-35929
Alpine Linux 3.21cosignFixed1.10.1-r0ALPINE-CVE-2022-35929
Alpine Linux 3.20cosignFixed1.10.1-r0ALPINE-CVE-2022-35929
Alpine Linux 3.19cosignFixed1.10.1-r0ALPINE-CVE-2022-35929
Alpine Linux 3.18cosignFixed1.10.1-r0ALPINE-CVE-2022-35929
Alpine Linux 3.17cosignFixed1.10.1-r0ALPINE-CVE-2022-35929
Alpine Linux 3.16cosignFixed1.10.1-r0ALPINE-CVE-2022-35929
Go librarygithub.com/sigstore/cosignFixed1.10.1GHSA-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.

References

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.