CVEfocus › CVE database › CVE-2022-23649

CVE-2022-23649Improper Certificate Validation in Cosign

CVSS 3.3 LowEPSS 0.2% (higher than 4% of CVEs)Published 2022-02-18Updated 2025-04-23Assigner: GitHub_M

Cosign provides container signing, verification, and storage in an OCI registry for the sigstore project. Prior to version 1.5.2, Cosign can be manipulated to claim that an entry for a signature exists in the Rekor transparency log even if it doesn't. This requires the attacker to have pull and push permissions for the signature in OCI. This can happen with both standard signing with a keypair and "keyless signing" with Fulcio. If an attacker has access to the signature in OCI, they can manipulate cosign into believing the entry was stored in Rekor even though it wasn't. The vulnerability has been patched in v1.5.2 of Cosign. The `signature` in the `signedEntryTimestamp` provided by Rekor is now compared to the `signature` that is being verified. If these don't match, then an error is returned. If a valid bundle is copied to a different signature, verification should fail. Cosign output now only informs the user that certificates were verified if a certificate was in fact verified. There is currently no known workaround.

CWE-295

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.5.2-r0ALPINE-CVE-2022-23649
Alpine Linux 3.23cosignFixed1.5.2-r0ALPINE-CVE-2022-23649
Alpine Linux 3.22cosignFixed1.5.2-r0ALPINE-CVE-2022-23649
Alpine Linux 3.21cosignFixed1.5.2-r0ALPINE-CVE-2022-23649
Alpine Linux 3.20cosignFixed1.5.2-r0ALPINE-CVE-2022-23649
Alpine Linux 3.19cosignFixed1.5.2-r0ALPINE-CVE-2022-23649
Alpine Linux 3.18cosignFixed1.5.2-r0ALPINE-CVE-2022-23649
Alpine Linux 3.17cosignFixed1.5.2-r0ALPINE-CVE-2022-23649
Alpine Linux 3.16cosignFixed1.5.2-r0ALPINE-CVE-2022-23649
Go librarygithub.com/sigstore/cosignFixed1.5.2GHSA-ccxc-vr6p-4858

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.