← Terug naar overzicht

A critical vulnerability exists in Kyverno versions 1.18.0 through 1.18.1 where the NamespacedMutatingPolicy CEL compiler incorrectly exposes the generator library to matchConditions. This allows a namespace-scoped policy to invoke generator.apply() with an arbitrary target namespace, bypassing intended scope restrictions. The root cause lies in pkg/cel/policies/mpol/validate.go failing to enforce namespace scope, and GenerateResources in pkg/cel/libs/context.go not rejecting cross-namespace targets. An attacker with permissions to create NamespacedMutatingPolicy objects in one namespace can exploit the admission controller's cluster-wide privileges to create or modify resources such as ConfigMaps, NetworkPolicies, Secrets, and RoleBindings in other namespaces. This enables unauthorized resource modification and potential privilege escalation across the Kubernetes cluster. The vulnerability has been patched in Kyverno version 1.18.2 with fixes across multiple commits and an SDK update.

Affected products

  • Kyverno 1.18.0
  • Kyverno 1.18.1

Related CVE's

  • CVE-2026-54523

Categories

  • Cloud & Virtualization
  • Identity & Access
  • Security Tools