Skip to content
OpenAdvisories
Low · 3.3 CVE-2022-23649 BIT-cosign-2022-23649EUVD-2022-0958GHSA-ccxc-vr6p-4858GO-2022-0326

Improper Certificate Validation in Cosign

Published Feb 18, 2022 · Updated Apr 23, 2025 · Assigned by GitHub_M

Description

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.

Affected products

VendorProductAffectedFixed
sigstore cosign < 1.5.2 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
openSUSE Tumbleweed cosign 1.5.2-1.1 openSUSE-SU-2024:11860-1
ReleasePackageFixed inAdvisory
Alpine v3.24 cosign 1.5.2-r0 —
Alpine v3.23 cosign 1.5.2-r0 —
Alpine v3.22 cosign 1.5.2-r0 —
Alpine v3.21 cosign 1.5.2-r0 —
Alpine v3.20 cosign 1.5.2-r0 —
Show 4 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 cosign 1.5.2-r0 —
Alpine v3.18 cosign 1.5.2-r0 —
Alpine v3.17 cosign 1.5.2-r0 —
Alpine v3.16 cosign 1.5.2-r0 —

Affected packages

EcosystemPackageAffectedFixedRecord
Go github.com/sigstore/cosign < 1.5.2 1.5.2 GHSA-ccxc-vr6p-4858

Advisories 1

References