Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/sigstore/cosign
  4. ›
  5. CVE-2022-23649

CVE-2022-23649: Improper Certificate Validation

February 22, 2022 (updated February 26, 2022)

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 does not. 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.

References

  • github.com/advisories/GHSA-ccxc-vr6p-4858
  • github.com/sigstore/cosign/commit/96d410a6580e4e81d24d112a0855c70ca3fb5b49
  • github.com/sigstore/cosign/releases/tag/v1.5.2
  • github.com/sigstore/cosign/security/advisories/GHSA-ccxc-vr6p-4858
  • nvd.nist.gov/vuln/detail/CVE-2022-23649

Code Behaviors & Features

Detect and mitigate CVE-2022-23649 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.5.2

Fixed versions

  • v1.5.2

Solution

Upgrade to version 1.5.2 or above.

Impact 3.3 LOW

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-295: Improper Certificate Validation

Source file

go/github.com/sigstore/cosign/CVE-2022-23649.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:10 +0000.