CVE-2022-23649: Improper 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.
Affected Software
Remediation
Event History
Frequently Asked Questions
What is CVE-2022-23649?
CVE-2022-23649 is a vulnerability in Cosign prior to version 1.5.2 that allows an attacker to manipulate the Rekor transparency log.
What is the severity of CVE-2022-23649?
CVE-2022-23649 has a severity of low, with a severity value of 3.3.
How does CVE-2022-23649 affect Sigstore Cosign?
CVE-2022-23649 affects Sigstore Cosign versions up to and excluding 1.5.2.
How can CVE-2022-23649 be fixed?
To fix CVE-2022-23649, users should update to version 1.5.2 of Sigstore Cosign or higher.
What is the Common Weakness Enumeration (CWE) ID for CVE-2022-23649?
CVE-2022-23649 is associated with CWE-295, which is the classification for Improper Certificate Validation.