Skip to main content

Time-of-check Time-of-use (TOCTOU) Race Condition

CVE-2026-122321

Severity High
Score 8.5/10

Summary

Kyverno versions from 1.18.0 prior to 1.19.2 contains a signature verification bypass in "verifyImages" because cached verification results are keyed by the image reference string (such as a tag) rather than bound to the verified digest, so cache hits skip signature and attestation checks. An attacker who can submit workloads and move a registry tag can warm the cache with a signed image, repoint the tag, and have Kyverno admit the workload and use "mutateDigest" to pin the unverified digest.

  • LOW
  • NETWORK
  • HIGH
  • CHANGED
  • NONE
  • LOW
  • LOW
  • LOW

CWE-367 - Time-of-check Time-of-use (TOCTOU) Race Condition

The software checks the state of a resource before using that resource, but the resource's state can change between the check and the use in a way that invalidates the results of the check. This can cause the software to perform invalid actions when the resource is in an unexpected state.

Advisory Timeline

  • Published