CVE-2022-23649Improper Certificate Validation in Cosign
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.
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.5.2-r0 | ALPINE-CVE-2022-23649 |
| Alpine Linux 3.23 | cosign | Fixed | 1.5.2-r0 | ALPINE-CVE-2022-23649 |
| Alpine Linux 3.22 | cosign | Fixed | 1.5.2-r0 | ALPINE-CVE-2022-23649 |
| Alpine Linux 3.21 | cosign | Fixed | 1.5.2-r0 | ALPINE-CVE-2022-23649 |
| Alpine Linux 3.20 | cosign | Fixed | 1.5.2-r0 | ALPINE-CVE-2022-23649 |
| Alpine Linux 3.19 | cosign | Fixed | 1.5.2-r0 | ALPINE-CVE-2022-23649 |
| Alpine Linux 3.18 | cosign | Fixed | 1.5.2-r0 | ALPINE-CVE-2022-23649 |
| Alpine Linux 3.17 | cosign | Fixed | 1.5.2-r0 | ALPINE-CVE-2022-23649 |
| Alpine Linux 3.16 | cosign | Fixed | 1.5.2-r0 | ALPINE-CVE-2022-23649 |
| Go library | github.com/sigstore/cosign | Fixed | 1.5.2 | GHSA-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.
- sigstore cosign: affected: < 1.5.2
References
- https://github.com/sigstore/cosign/security/advisories/GHSA-ccxc-vr6p-4858
- https://github.com/sigstore/cosign/commit/96d410a6580e4e81d24d112a0855c70ca3fb5b49
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.