CVE-2026-122310: Kyverno policy context validation bypass leads to cluster admin escalation

Kyverno 1.19.1 validates policy context API call paths after sanitizing them, but executes the raw unsanitized path, allowing fragments or query parameters to hide directory traversal sequences. A namespace-scoped user with policy creation rights can exploit this to reach cluster-scoped en

Share

This is a privilege escalation flaw in Kyverno's policy validation logic. The vulnerability exists because the policy engine sanitizes the URL path for display or logging purposes, then discards the sanitized result and executes the original, unmodified path. An attacker with namespace-level policy creation rights can craft a policy that includes path traversal sequences hidden behind URL fragments (#) or query strings (?), which the Kubernetes HTTP client strips before processing but which Kyverno's validation logic fails to account for.

CVECVE-2026-122310
SeverityCritical (CVSS 9.9)
Actively exploitedNot confirmed at time of writing
WeaknessCWE-436
Attack vectorNetwork
Privileges requiredLow
User interactionNone
Published5 Nov 2026

How the attack works

When a namespace-scoped user creates a Policy with a malicious context.apiCall urlPath—for example, containing ../ segments appended after a # or ?—Kyverno's validation routine cleans the path for inspection but then passes the original, unclean path to the Kubernetes API client. The client discards fragments and query parameters, exposing the hidden directory traversal sequences and allowing the request to reach cluster-scoped endpoints. Because the apiCall is executed under Kyverno's ServiceAccount (which typically has cluster admin permissions), the attacker gains cluster-level access.

Who is affected

Kyverno versions 1.19.1 only. Versions before 1.19.1 and 1.19.2 or later are not affected. Any cluster running Kyverno 1.19.1 where namespace-scoped users can create or modify policies is at risk.

How to check if you're exposed

  • Inventory Kyverno installations and confirm version; check 'kubectl get pods -n kyverno -o jsonpath={.items[*].spec.containers[*].image}' or query your Helm release
  • Search audit logs for Policy creation events in non-kyverno namespaces that include apiCall context with unusual URL patterns (fragments, query strings, or ../ sequences)
  • Review ClusterPolicy and Policy resources cluster-wide for context.apiCall entries containing # or ? characters: 'kubectl get policy,clusterpolicy -A -o json | grep -i apiCall'
  • Monitor for unexpected outbound API requests from kyverno pods to cluster-scoped endpoints (e.g., /api/v1/namespaces, /apis/rbac.authorization.k8s.io)

How to fix it

  • Upgrade Kyverno to version 1.19.2 or later immediately: consult the Kyverno release notes for upgrade steps matching your deployment method (Helm, kubectl manifests, etc.)
  • Review and revoke policy creation permissions for all namespace-scoped service accounts until the upgrade is complete
  • Audit all existing Policy and ClusterPolicy resources for suspicious apiCall context entries; delete or isolate any with fragment or query parameters
  • After patching, restore appropriate policy creation permissions and re-enable policy reconciliation

If you can't patch yet

  • Restrict namespace-scoped RBAC permissions to prevent non-admin users from creating or modifying Policy resources until the upgrade is completed
  • Implement network policies or egress filtering to limit outbound API calls from kyverno pods to only necessary cluster endpoints, reducing blast radius if exploited

Need help checking your exposure or patching at scale? FutureOps InfoTech can help.

Read more