CVE-2022-23649

Low

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.

SeverityLow
CVSS3.3
Exploit probability—
ProductSigstore Cosign
PublishedFeb 18, 2022
First seenFeb 18, 2022
Weakness typeCWE-295CWE-295

How to fix

Update
  • sigstore cosign1.5.2 or later
  • github.com/sigstore/cosign1.5.2 or later

Affected products

ProductAffected versionsFixed in
sigstore cosignv < 1.5.21.5.2
github.com/sigstore/cosignGov < 1.5.21.5.2

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.