Tag: CVE-2026-133879

Detecting KubeVirt CVE-2026-133879: 4 Sigma rules for the Kubernetes audit log

Detecting KubeVirt CVE-2026-133879: 4 Sigma rules for the Kubernetes audit log

CVE-2026-133879 is the kind of bug that never touches a host log. There is no shell, no odd process, no outbound connection. A tenant writes a VirtualMachine manifest with one extra annotation, KubeVirt’s own controller does the rest, and the only trace is a handful of JSON objects passing through the Kubernetes API server. If your audit log does not keep those objects, the attack is invisible.

The root cause, the RBAC exposure and the admission policy are in my analysis of the bug. This post is the defender’s half: four Sigma rules for the Kubernetes audit log, the audit settings they need, and an honest look at where Sigma stops being the right tool for nested Kubernetes objects.

At a glance

  • Rules: 4. Two are status: test (behaviour described by Red Hat and the Bugzilla analysis), two are status: experimental (my inference).
  • Domain: Kubernetes. Log source: Kubernetes API server audit log (product: kubernetes, service: audit).
  • Telemetry you need: request bodies for virtualmachines.kubevirt.io and datavolumes.cdi.kubevirt.io (audit level Request or RequestResponse). OpenShift’s Default audit profile logs metadata only, so three of the four rules see nothing there until you change it.
  • ATT&CK: T1068 Exploitation for Privilege Escalation (primary), T1530 Data from Cloud Storage (closest fit for the copy).
  • IOCs: none. No exploitation is known (CISA SSVC: none) and I found no public detections for this CVE as of November 22, 2026.
  • YAML: the Kubernetes folder of my Detection Rules repo.

The case in brief

Per Red Hat’s CVE page and Bugzilla 2578653, the attacker creates or updates a VirtualMachine whose embedded DataVolumeTemplate carries cdi.kubevirt.io/storage.checkStaticVolume and a clone source in another namespace; Bugzilla names spec.source.pvc.namespace. The CDI API has two more ways to point at another namespace, spec.source.snapshot.namespace and spec.sourceRef.namespace (a DataSource, defaulting to the DataVolume’s namespace), per the CDI v1beta1 types. That they reach the same bypass is my inference (the fix touches the missing-DataSource path too), so the rules check all three. VM admission only checks the DataVolume’s own namespace. virt-controller then asks CDI whether the VM’s service account may clone the source; the annotation turns the denied answer into “allowed, no token”, and virt-controller creates the DataVolume under its own identity. CDI finds no static volume and clones the victim’s PVC into the attacker’s namespace.

For detection that gives two API writes worth watching: the tenant’s VM write and the controller’s DataVolume create. The controller runs as the kubevirt-controller service account (a constant in the KubeVirt source), so in the audit log its writes show up as system:serviceaccount:<install namespace>:kubevirt-controller. CDI only checks whether the annotation key is present, not its value, so the rules use exists rather than matching a value. The copy itself and whatever the tenant reads afterwards look like ordinary storage activity. The full chain is in the analysis.

Detection map

Detection map: Kubernetes audit logs with request bodies, audit annotations from an admission policy and a kubectl sweep feed four Sigma rules mapped to T1068 and T1530, with name recon, the CDI copy and in-guest reads marked as gaps
Which audit telemetry feeds which rule. Three of the four rules need request bodies, which OpenShift does not log by default.

Read it left to right. The top source is where three of the four rules live, and it is the one most clusters do not have: audit events with request bodies for KubeVirt and CDI objects. The middle source exists only if you deploy the example admission policy with the Audit action. The bottom source is not Sigma at all: a jq sweep of live objects, which is the only thing that sees VMs created before you turned on body logging.

Rule overview

RuleDomainLog sourceATT&CK (tactic / technique)LevelStatus
virt-controller creates a cross-namespace clone DataVolume with checkStaticVolumeKuberneteskubernetes / audit (request bodies)Privilege Escalation, Collection / T1068, T1530HighTest
VM DataVolumeTemplate with checkStaticVolume and a foreign clone sourceKuberneteskubernetes / audit (request bodies)Privilege Escalation, Collection / T1068, T1530HighTest
Admission policy violation for the cross-namespace cloneKuberneteskubernetes / audit (metadata + annotations)Privilege Escalation / T1068HighExperimental
checkStaticVolume set on any VM or DataVolume (hunting)Kuberneteskubernetes / audit (request/response bodies)Privilege Escalation / T1068LowExperimental

The rules

A word on the logsource first. I used the same category: application, product: kubernetes, service: audit triple as SigmaHQ’s Kubernetes rules, but I use the real audit field objectRef.apiGroup where SigmaHQ uses a top-level apiGroup. Map whichever your pipeline produces.

virt-controller creates a cross-namespace clone DataVolume with checkStaticVolume

Context. This is the moment the bypass works. It is also the most portable rule of the four, because a DataVolume has exactly one source, so there are no lists to match inside.

Condition. Alert when the user is a service account whose name ends in :kubevirt-controller, the verb is create on datavolumes in cdi.kubevirt.io, the object carries cdi.kubevirt.io/storage.checkStaticVolume, a source namespace is set (PVC, snapshot or sourceRef), and that namespace differs from the DataVolume’s own. The last clause uses Sigma’s fieldref modifier to compare two fields of the same event.

ATT&CK. Privilege Escalation (TA0004) – T1068 Exploitation for Privilege Escalation; Collection (TA0009) – T1530 Data from Cloud Storage. T1530’s platforms are IaaS, SaaS and Office Suite, not Containers, so treat it as the closest fit for “copy a volume you are not entitled to”, not a perfect one.

title: CDI DataVolume With checkStaticVolume Cross-Namespace Clone Created By KubeVirt Controller
id: 00777947-1699-457c-8de4-125b3ee2460d
status: test
description: |
    Detects the KubeVirt virt-controller service account creating a CDI DataVolume that carries the
    cdi.kubevirt.io/storage.checkStaticVolume annotation and clones from another namespace. In
    CVE-2026-133879 this is the confused-deputy step: the controller creates the clone under its own
    identity after the service-account clone check was waived. Needs audit level Request or higher for datavolumes.
references:
    - https://access.redhat.com/security/cve/CVE-2026-133879
    - https://bugzilla.redhat.com/show_bug.cgi?id=2578653
    - https://github.com/kubevirt/containerized-data-importer/pull/4346
    - https://github.com/kubevirt/kubevirt/blob/main/pkg/virt-operator/resource/generate/components/serviceaccountnames.go
    - https://netsec101.com/?p=399
author: netsec101.com
date: 2026-11-22
tags:
    - attack.privilege-escalation
    - attack.t1068
    - attack.collection
    - attack.t1530
    - cve.2026-133879
    - detection.emerging-threats
logsource:
    category: application
    product: kubernetes
    service: audit
detection:
    selection_dv_create:
        objectRef.apiGroup: 'cdi.kubevirt.io'
        objectRef.resource: 'datavolumes'
        verb: 'create'
    selection_controller:
        user.username|startswith: 'system:serviceaccount:'
        user.username|endswith: ':kubevirt-controller'
    selection_annotation:
        requestObject.metadata.annotations.cdi.kubevirt.io/storage.checkStaticVolume|exists: true
    selection_source_namespace:
        - requestObject.spec.source.pvc.namespace|exists: true
        - requestObject.spec.source.snapshot.namespace|exists: true
        - requestObject.spec.sourceRef.namespace|exists: true
    filter_main_same_namespace_pvc:
        requestObject.spec.source.pvc.namespace|fieldref: objectRef.namespace
    filter_main_same_namespace_snapshot:
        requestObject.spec.source.snapshot.namespace|fieldref: objectRef.namespace
    filter_main_same_namespace_sourceref:
        requestObject.spec.sourceRef.namespace|fieldref: objectRef.namespace
    condition: all of selection_* and not 1 of filter_main_*
falsepositives:
    - VMs whose service account was legitimately granted datavolumes/source in the source namespace and that also set the annotation; verify the RoleBinding in the source namespace
    - Metro DR restores where the VM template legitimately references a source namespace with this annotation; confirm with the DR owners and exclude by VM namespace
level: high

View on GitHub

False positives and tuning. Two legitimate cases produce the same event: a VM service account that really was granted datavolumes/source in the source namespace (the documented way to allow cross-namespace clones), and Metro DR restores. For the first, check for a RoleBinding in the source namespace; if it exists, the clone was authorised and the annotation is just odd. For the second, exclude your DR namespaces after confirming with their owners. Also confirm the virt-controller service account name in your install: upstream KubeVirt and OpenShift Virtualization install into different namespaces, which is why the rule matches on the suffix.

How to test. In a lab cluster with two throwaway namespaces and a small dummy PVC, a CDI build without the fix will generate this event for real when you create a VM in one namespace that clones the dummy PVC from the other with the annotation set. On a build with the upstream fix (CDI PR #4346; no release tag yet as of November 22, 2026) the DataVolume should not be created, which is a useful check of the fix in itself. Only ever do this with throwaway data.

VM DataVolumeTemplate with checkStaticVolume and a foreign clone source

Context. The tenant’s own request, and the only rule that names the human or CI identity behind the attempt. It should still fire on a build with the upstream fix (CDI PR #4346; no release tag yet as of November 22, 2026), where the attempt fails, because it watches the request rather than the result. That is exactly when you want to know someone tried.

Condition. Alert on create or update of virtualmachines in kubevirt.io where a DataVolumeTemplate carries cdi.kubevirt.io/storage.checkStaticVolume, a template sets a source namespace, and that namespace differs from the VM’s namespace.

ATT&CK. Privilege Escalation (TA0004) – T1068; Collection (TA0009) – T1530 (closest fit).

title: KubeVirt VM DataVolumeTemplate With checkStaticVolume And Cross-Namespace Clone Source
id: af097b18-4253-40dd-8f4c-83115ae031bc
status: test
description: |
    Detects create or update of a KubeVirt VirtualMachine whose DataVolumeTemplate carries the
    cdi.kubevirt.io/storage.checkStaticVolume annotation and a clone source (PVC, snapshot or sourceRef)
    in a namespace other than the VM's own. This is the request that triggers CVE-2026-133879.
    Needs audit level Request or higher for virtualmachines. dataVolumeTemplates is a list, so check how
    your backend matches fields inside arrays before trusting this rule (see the companion post).
references:
    - https://access.redhat.com/security/cve/CVE-2026-133879
    - https://bugzilla.redhat.com/show_bug.cgi?id=2578653
    - https://github.com/kubevirt/containerized-data-importer/pull/4346
    - https://netsec101.com/?p=399
author: netsec101.com
date: 2026-11-22
tags:
    - attack.privilege-escalation
    - attack.t1068
    - attack.collection
    - attack.t1530
    - cve.2026-133879
    - detection.emerging-threats
logsource:
    category: application
    product: kubernetes
    service: audit
detection:
    selection_vm_write:
        objectRef.apiGroup: 'kubevirt.io'
        objectRef.resource: 'virtualmachines'
        verb:
            - 'create'
            - 'update'
    selection_annotation:
        requestObject.spec.dataVolumeTemplates.metadata.annotations.cdi.kubevirt.io/storage.checkStaticVolume|exists: true
    selection_source_namespace:
        - requestObject.spec.dataVolumeTemplates.spec.source.pvc.namespace|exists: true
        - requestObject.spec.dataVolumeTemplates.spec.source.snapshot.namespace|exists: true
        - requestObject.spec.dataVolumeTemplates.spec.sourceRef.namespace|exists: true
    filter_main_same_namespace_pvc:
        requestObject.spec.dataVolumeTemplates.spec.source.pvc.namespace|fieldref: objectRef.namespace
    filter_main_same_namespace_snapshot:
        requestObject.spec.dataVolumeTemplates.spec.source.snapshot.namespace|fieldref: objectRef.namespace
    filter_main_same_namespace_sourceref:
        requestObject.spec.dataVolumeTemplates.spec.sourceRef.namespace|fieldref: objectRef.namespace
    condition: all of selection_* and not 1 of filter_main_*
falsepositives:
    - Metro DR tooling (for example RamenDR) restoring VMs with checkStaticVolume; scope out the DR controller identities and namespaces
    - VMs whose service account was legitimately granted datavolumes/source in the source namespace; verify the RoleBinding in the source namespace
    - Platform admins deliberately cloning golden images from a shared namespace with this annotation set (rare)
level: high

View on GitHub

The Sigma limit. spec.dataVolumeTemplates is a list. Sigma has no syntax for “these two conditions in the same list element”, so this rule really means “the annotation in some template and a foreign source in some template”. A VM with an annotated same-namespace template and a separate, unannotated cross-namespace clone would match. How the dotted path reaches inside the list depends on the backend: Elasticsearch flattens arrays of objects (matching works, element pairing is lost), Splunk names the field requestObject.spec.dataVolumeTemplates{}.metadata..., and in KQL you need mv-expand. On top of that, the annotation key contains dots and a slash. Elasticsearch expands dotted keys into nested objects at ingest and Splunk’s spath splits on dots, so check the converted query against a real event. And fieldref against an array is where backends differ most: Lucene has no field-to-field comparison at all, so for Elastic you need ES|QL or a post-filter.

This is why I treat the Sigma rule as the alerting layer and keep a precise query next to it. Here is a Splunk starting point that expands the list and keeps the pairing; I have not run it against a live index, so adapt the index and field names:

index=<your_k8s_audit_index> objectRef.apiGroup="kubevirt.io" objectRef.resource="virtualmachines" verb IN ("create","update")
| spath path=requestObject.spec.dataVolumeTemplates{} output=dvt
| mvexpand dvt
| where like(dvt, "%cdi.kubevirt.io/storage.checkStaticVolume%")
| spath input=dvt path=spec.source.pvc.namespace output=src_pvc
| spath input=dvt path=spec.source.snapshot.namespace output=src_snap
| spath input=dvt path=spec.sourceRef.namespace output=src_ref
| eval src_ns=coalesce(src_pvc, src_snap, src_ref)
| where isnotnull(src_ns) AND src_ns!='objectRef.namespace'
| table _time user.username objectRef.namespace objectRef.name src_ns

False positives and tuning. Same as the previous rule: Metro DR tooling and VM service accounts with a real clone grant. Patches are not covered, because a patch body only holds the change; the hunting rule below reads the response object for those.

How to test. The same lab VM create as above triggers it whether or not your CDI build carries the fix.

Admission policy violation for the cross-namespace clone

Context. If you deploy the example ValidatingAdmissionPolicy from the analysis, every blocked or warned attempt can be written into the audit log. This is the cheapest rule of the four, because it works at Metadata level: no request bodies needed.

Condition. Alert when the audit event annotation validation.policy.admission.k8s.io/validation_failure contains the policy name deny-checkstaticvolume-cross-ns-clone. Kubernetes (1.27 and later) writes that annotation, a JSON list with the policy, binding and message, only when the binding’s validationActions include Audit. When you move from Warn to enforcement, use ["Deny", "Audit"], not ["Deny"] alone, or this rule goes quiet.

ATT&CK. Privilege Escalation (TA0004) – T1068.

title: ValidatingAdmissionPolicy Violation For checkStaticVolume Cross-Namespace Clone
id: fff88e08-7325-4c32-9438-c6b7636cef18
status: experimental
description: |
    Detects audit events where the example ValidatingAdmissionPolicy deny-checkstaticvolume-cross-ns-clone
    (published in the netsec101 analysis of CVE-2026-133879) recorded a validation failure, meaning someone
    submitted a VM whose DataVolumeTemplate combines the checkStaticVolume annotation with a foreign clone
    source. Works at audit level Metadata, but only if the policy binding includes the Audit action.
references:
    - https://access.redhat.com/security/cve/CVE-2026-133879
    - https://kubernetes.io/docs/reference/labels-annotations-taints/audit-annotations/
    - https://kubernetes.io/docs/reference/access-authn-authz/validating-admission-policy/
    - https://netsec101.com/?p=399
author: netsec101.com
date: 2026-11-22
tags:
    - attack.privilege-escalation
    - attack.t1068
    - cve.2026-133879
    - detection.emerging-threats
logsource:
    category: application
    product: kubernetes
    service: audit
detection:
    selection:
        annotations.validation.policy.admission.k8s.io/validation_failure|contains: 'deny-checkstaticvolume-cross-ns-clone'
    condition: selection
falsepositives:
    - DR or platform automation that sets the annotation with a foreign source on purpose; exempt it in the policy binding rather than in this rule
    - Renamed policy; update the string if you deploy the policy under another name
level: high

View on GitHub

False positives and tuning. Anything legitimate that trips the policy should be exempted in the policy binding, not in this rule. If you rename the policy, update the string. Status is experimental because the policy is my example, not a vendor control.

How to test. Apply the policy with validationActions: ["Warn", "Audit"] in a lab and repeat the VM create from the first test. You should get a warning in the kubectl output and the annotation in the audit event.

checkStaticVolume set on any VM or DataVolume

Context. The annotation exists for Metro DR setups. In a cluster without them, its baseline should be zero, so any use deserves a look. This rule also catches patch requests, which the VM rule misses.

Condition. Flag create, update or patch on virtualmachines or datavolumes where cdi.kubevirt.io/storage.checkStaticVolume appears in the request object or the response object, at either the VM template path or the DataVolume’s own metadata. The response-object paths need audit level RequestResponse.

ATT&CK. Privilege Escalation (TA0004) – T1068.

title: CDI checkStaticVolume Annotation Set On VirtualMachine Or DataVolume
id: 9c6bc261-efaf-4220-8ff7-dd5de33d8c4f
status: experimental
description: |
    Hunts for any create, update or patch of a KubeVirt VirtualMachine or CDI DataVolume where the
    cdi.kubevirt.io/storage.checkStaticVolume annotation appears in the request or response object.
    The annotation exists for Metro DR; outside DR namespaces its normal baseline is usually zero, and
    it is the switch that CVE-2026-133879 abuses. Patch bodies are partial, so the responseObject paths
    need audit level RequestResponse.
references:
    - https://access.redhat.com/security/cve/CVE-2026-133879
    - https://github.com/kubevirt/containerized-data-importer/pull/2583
    - https://github.com/kubevirt/containerized-data-importer/pull/4346
    - https://netsec101.com/?p=399
author: netsec101.com
date: 2026-11-22
tags:
    - attack.privilege-escalation
    - attack.t1068
    - cve.2026-133879
    - detection.threat-hunting
logsource:
    category: application
    product: kubernetes
    service: audit
detection:
    selection_resource:
        - objectRef.apiGroup: 'kubevirt.io'
          objectRef.resource: 'virtualmachines'
        - objectRef.apiGroup: 'cdi.kubevirt.io'
          objectRef.resource: 'datavolumes'
    selection_verb:
        verb:
            - 'create'
            - 'update'
            - 'patch'
    selection_annotation:
        - requestObject.spec.dataVolumeTemplates.metadata.annotations.cdi.kubevirt.io/storage.checkStaticVolume|exists: true
        - requestObject.metadata.annotations.cdi.kubevirt.io/storage.checkStaticVolume|exists: true
        - responseObject.spec.dataVolumeTemplates.metadata.annotations.cdi.kubevirt.io/storage.checkStaticVolume|exists: true
        - responseObject.metadata.annotations.cdi.kubevirt.io/storage.checkStaticVolume|exists: true
    condition: all of selection_*
falsepositives:
    - Metro DR tooling (RamenDR, volume replication operators) and the DR controller service accounts; exclude them by user.username and namespace after a baseline
    - Updates by virt-controller or CDI to objects that already carry the annotation; deduplicate per object
level: low

View on GitHub

False positives and tuning. DR controllers and their service accounts, and repeat updates by virt-controller or CDI to an object that already has the annotation. Baseline for a week, exclude the DR identities by user.username and namespace, and deduplicate per object. The same list caveat as the VM rule applies.

How to test. Create a lab DataVolume that imports a small image into its own namespace with the annotation set. No clone, no cross-namespace source, and it should still fire.

Hunting without Sigma

Two jq queries do what Sigma cannot, and I would run both before turning on any alert. The first reads JSON-lines audit logs and keeps each template’s annotation and source together, which no Sigma backend does reliably. For patches it reads the response object, which holds the full result:

jq -c '
  select(.objectRef.apiGroup == "kubevirt.io"
         and .objectRef.resource == "virtualmachines"
         and (.verb | IN("create","update","patch")))
  | . as $e
  | (if $e.verb == "patch" then $e.responseObject else $e.requestObject end) as $o
  | ($o.spec.dataVolumeTemplates // [])[]
  | select(.metadata.annotations["cdi.kubevirt.io/storage.checkStaticVolume"] != null)
  | {ts: $e.requestReceivedTimestamp, user: $e.user.username,
     ns: $e.objectRef.namespace, vm: $e.objectRef.name,
     code: $e.responseStatus.code,
     src_ns: (.spec.source.pvc.namespace // .spec.source.snapshot.namespace
              // .spec.sourceRef.namespace // null)}
  | select(.src_ns != null and .src_ns != .ns)' audit.log

The second sweeps live VM specs. My reasoning for including it: the template is part of the VM object, so it should still be there after the generated DataVolume is deleted, and it covers VMs created before you turned on body logging.

kubectl get vm -A -o json | jq -r '
  .items[] | .metadata.namespace as $ns | .metadata.name as $vm
  | (.spec.dataVolumeTemplates // [])[]
  | select(.metadata.annotations["cdi.kubevirt.io/storage.checkStaticVolume"] != null)
  | [$ns, $vm, .metadata.name,
     (.spec.source.pvc.namespace // .spec.source.snapshot.namespace
      // .spec.sourceRef.namespace // "-")] | @tsv'

Run the same filter over kubectl get datavolumes -A -o json (reading .metadata.annotations and .spec.source directly), keeping in mind that completed DataVolumes may have been garbage-collected if your cluster enabled it. In the CDI v1.59 API, the CDIConfig field dataVolumeTTLSeconds controls this and is documented as disabled by default.

Coverage and gaps

Step in the caseTacticTechniqueRuleCovered?
Learn the victim namespace and PVC nameDiscoveryT1613 Container and Resource Discovery–Gap: reads of PVCs are normal, names often in Git
VM with annotated template and foreign sourcePrivilege EscalationT1068VM template ruleYes, with request bodies
Same, blocked or warned by the policyPrivilege EscalationT1068Admission policy violationYes, with the policy in Audit
Annotation added by patchPrivilege EscalationT1068Hunting ruleYes, with RequestResponse
virt-controller creates the clone DataVolumePrivilege Escalation, CollectionT1068, T1530Controller DataVolume ruleYes, with request bodies
CDI copies the PVCCollectionT1530–Gap: clone pods and PVCs look normal on their own
Tenant boots or mounts the clone and reads itCollection––Gap: happens inside the guest

The gap that matters most is telemetry, not logic. On a cluster logging metadata only, you would see a create on virtualmachines and a create on datavolumes by virt-controller, both completely routine. The fix is an audit policy rule that records Request level for kubevirt.io and cdi.kubevirt.io writes (on OpenShift, the WriteRequestBodies profile or a custom rule), plus the admission policy with Audit, which works even without bodies.

Deploying the rules

Download the YAML from the repo and convert it with sigma-cli. I am not aware of a stock processing pipeline for Kubernetes audit logs in the common backends (sigma list pipelines shows what you have), so my suggestion is to convert without one and map the fields (objectRef.*, user.username, requestObject.*, annotations.*) to what your collector produces. Install the backend plugin first (sigma plugin install splunk, elasticsearch or kusto, as listed in the Sigma backends docs) and use sigma list targets to confirm the target names. The README of the Elasticsearch backend uses -t lucene, -t eql and -t esql; the README of the Kusto backend uses -t kusto, with pipelines built for Microsoft XDR, Sentinel ASIM and Azure Monitor tables, none of them for Kubernetes audit data. In my assessment, exists and fieldref need a recent pySigma backend and the legacy sigmac converter will not handle them. Test before you rely on it. If a backend refuses fieldref, drop the filters and do the namespace comparison in a post-filter.

sigma convert -t splunk kubernetes_audit_cdi_datavolume_cross_namespace_clone_by_virt_controller.yml
sigma convert -t esql kubernetes_audit_cdi_datavolume_cross_namespace_clone_by_virt_controller.yml
sigma convert -t kusto kubernetes_audit_vap_checkstaticvolume_cross_namespace_clone_violation.yml

Read every converted query before you trust it, especially the annotation field name. Run them alert-only for a week next to the jq hunt before paging anyone.

My take

This is a very detectable bug on paper and an invisible one in practice. Every step is an API write with the evidence sitting in the object body, and almost nobody keeps those bodies for custom resources. That is the real lesson for me: Kubernetes audit policies are usually written around Secrets, RBAC and pod exec, and operators like KubeVirt and CDI add a whole second control plane whose objects decide who can read whose disks. If your audit policy does not name their API groups, you are blind to this class of bug, not just this CVE.

If I could turn on only one thing, it would be the admission policy with Audit and the rule that reads its annotation. It prevents the attack, it works at metadata level, and it keeps telling you about attempts after the fix ships. The controller DataVolume rule comes second, because it is the one Sigma rule here that converts cleanly. The VM template rule is the most precise on paper and the hardest to trust after conversion, which says more about Sigma’s fit for deeply nested JSON than about the rule. For objects like these, I would keep Sigma for portability and alerting and put the real logic in an admission policy and a jq query.

Sources

KubeVirt CDI flaw lets tenants clone other namespaces’ VM disks (CVE-2026-133879)

KubeVirt CDI flaw lets tenants clone other namespaces’ VM disks (CVE-2026-133879)

Picture a shared OpenShift Virtualization cluster. Team A runs a database VM whose disk lives on a PersistentVolumeClaim (PVC) in namespace team-a. Team B has ordinary edit rights in team-b and nothing in team-a. With one annotation in a VM manifest, Team B could ask the platform to clone Team A’s disk into its own namespace, and the platform’s own controller would do the copying for them.

That is CVE-2026-133879, published by Red Hat on November 20, 2026. It sits in KubeVirt’s Containerized Data Importer (CDI), the component that imports, uploads and clones VM disks. A storage annotation meant for disaster-recovery setups also switched off the clone permission check when the request came through a VirtualMachine. Red Hat rates it Important, with a preliminary CVSS 3.1 score of 7.7 (the High band). The upstream fix is merged but, as of November 22, 2026, not in any tagged release, and Red Hat lists no fixed packages. Severity in one line: high for multi-tenant clusters where tenants can create VMs, close to irrelevant for single-team clusters.

At a glance

  • CVE: CVE-2026-133879, CWE-280 (improper handling of insufficient permissions)
  • CVSS 3.1: 7.7, AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N (Red Hat, marked preliminary). NVD: awaiting analysis, no score of its own.
  • Affected: KubeVirt containerized-data-importer; Red Hat lists OpenShift Virtualization 4 and 5 components (virt-api, virt-controller, the virt-cdi-* images and others). No version ranges published.
  • Exploitation: none known. CISA’s SSVC entry says exploitation “none”, automatable “no”.
  • Fix: upstream PR #4346 merged November 18, 2026, backported to release-v1.61 through v1.66 branches. No CDI release tag and no Red Hat errata yet.
  • Workaround: restrict VM create/update to trusted users, or reject such templates with an admission policy.
  • Who should care: anyone running KubeVirt or OpenShift Virtualization with more than one tenant, especially platform teams selling “VMs as a service” inside a shared cluster.

What we know

The public record is thin but consistent. Red Hat’s CVE page, the CVE.org record and Bugzilla 2578653 all describe the same thing: a tenant creates a VirtualMachine with an embedded DataVolumeTemplate that carries cdi.kubevirt.io/storage.checkStaticVolume and points at a clone source in another namespace. The service-account clone authorization check is bypassed and the foreign PVC gets cloned into the tenant’s namespace. Red Hat’s own description ends: “This can result in cross-tenant data disclosure.”

According to the CVE record, the issue was reported to Red Hat at 15:24 UTC on November 20, 2026, and the CVE went public at 17:06 UTC the same day. That compressed timeline makes sense once you look upstream: the fix, PR #4346 by Michael Henriksen (mhenriks), was opened November 16 and merged November 18. Cherry-picks to the release-v1.61 to v1.66 branches merged on November 20 and 21; the v1.57 to v1.60 backports were still open when I checked. No reporter is credited anywhere.

What is still unknown as of November 22, 2026: the exact affected version range, which CDI release will ship the fix, which OpenShift Virtualization z-streams will carry it, and whether KubeVirt itself will add a check on its side. The CDI repo has no published security advisory, and its latest tag is still v1.66.1 from September 6, 2026.

How it works

Some background first. A DataVolume is CDI’s custom resource that says “make me a PVC and fill it from here”. The CDI docs list sources such as HTTP, registry, upload, blank, and clones of an existing PVC or a VolumeSnapshot; the clone authorization code also handles DataSource references. According to the CDI clone docs, a cross-namespace clone needs the ability to create pods or the datavolumes/source permission in the source namespace. The OKD 4.14 documentation grants it with a ClusterRole on datavolumes/source and an example RoleBinding in the source namespace whose subject is the default service account of the destination namespace.

When a VM embeds a DataVolumeTemplate, the tenant does not create the DataVolume. KubeVirt’s virt-controller does, using its own privileged identity. To stop that from becoming a confused deputy (a privileged component tricked into acting for someone without the rights), virt-controller first calls CDI’s AuthorizeSA function. It checks whether the VM’s service account (from the VM template, or default) may read the clone source. If not, the DataVolume is never created.

Now the annotation. checkStaticVolume arrived in PR #2583, merged February 22, 2023, for a Metro DR setup built on RamenDR. It tells CDI “a replicated PV may already exist for this claim; if so, bind to it and skip population”. Because the source might legitimately not exist yet on the DR side, the authorization code got a waiver: with that annotation, a failed check returned “allowed, but no clone token” (ErrNoTokenOkay). The 2023 commit message reasoned that no token meant no clone, so the waiver was harmless.

That reasoning held for users creating DataVolumes directly. It broke on the controller path. Per the Bugzilla analysis:

  • The VM admission check (validateVirtualMachineDataVolumeTemplateNamespace) validates only the DataVolume’s own namespace. It ignores annotations and the source namespace.
  • The annotation is copied to the generated DataVolume. AuthorizeSA turns the denied SubjectAccessReview into ErrNoTokenOkay.
  • virt-controller treats that sentinel as success and creates the clone DataVolume under its own identity.
  • CDI finds no static PV, falls back to normal population, and clones the victim PVC into the attacker’s namespace.
Five-step diagram: tenant VM with annotated DataVolumeTemplate passes admission, AuthorizeSA returns ErrNoTokenOkay, virt-controller creates the DataVolume, CDI clones the victim PVC into the tenant namespace
How the checkStaticVolume annotation turns virt-controller into a confused deputy. Based on Red Hat Bugzilla 2578653 and CDI PR #4346.

Henriksen’s PR description names the root cause in one line: “The problem is accepting ErrNoTokenOkay and then creating the DV under a different privileged identity.” The fix removes checkStaticVolume from the AuthorizeSA waiver in three places (denied review, missing source namespace, missing DataSource). It keeps the prePopulated waiver, which never proceeds to clone, and leaves AuthorizeUser alone because that runs in the webhook against the real user.

The bug class is old and familiar. An authorization function returned a third state (“allowed, sort of”) and one caller collapsed it into “yes”. Add a user-controlled annotation that flips the function into that state, and a feature built for DR became a cross-tenant read primitive.

Timeline from the February 2023 checkStaticVolume annotation to the November 2026 fix, CVE publication and pending releases
From DR feature to CVE: the annotation shipped in 2023; the fix merged November 18, 2026, with no tagged release as of November 22.

Who is affected and how badly

The precondition is permission to create or update VirtualMachines in some namespace. That sounds narrow until you look at how KubeVirt ships its roles. The KubeVirt docs say kubevirt.io:edit and kubevirt.io:admin aggregate by default into the standard Kubernetes edit and admin roles. So every person or CI service account that holds plain namespace edit or admin can create VMs, whether or not anyone ever thought of them as a “VM user”. Red Hat’s advice to “remove kubevirt.io:edit” really means auditing every edit and admin binding in every tenant namespace.

The attacker also needs to name a target: the victim namespace and the PVC or DataSource name. Those are not secret in many clusters (naming conventions, shared golden-image namespaces, Git repos with manifests), but they are not handed out either. Once a clone lands, the attacker boots a VM on it or mounts it and reads everything on the disk: database files, SSH host keys, application secrets baked into images.

My honest rating: high for shared clusters with semi-trusted tenants (internal platforms, hosting providers, training labs, CI farms that spin up VMs). Low for clusters where everyone with VM create rights could already read every namespace. It is not internet-exploitable on its own; it needs Kubernetes credentials. The CVSS “Scope: Changed” is fair, because the impact crosses the namespace boundary the cluster was meant to enforce.

What to do now

In order of what I would do first:

  1. Inventory who can create VMs. Run kubectl auth can-i create virtualmachines.kubevirt.io -n <ns> --as=<user> for tenant identities, and list RoleBindings to edit, admin, kubevirt.io:edit and kubevirt.io:admin across tenant namespaces. Do not forget CI service accounts.
  2. Remove VM create/update from untrusted identities, as Red Hat recommends. If you are on KubeVirt v1.8 or later, the alpha Manual aggregation strategy (feature gate OptOutRoleAggregation) stops the KubeVirt roles from riding along with plain edit. It is alpha, so test it first.
  3. Where tenants must keep VM rights, add an admission policy (example below) that rejects DataVolumeTemplates combining the annotation with a cross-namespace source. Exempt your DR namespaces if you actually use Metro DR.
  4. Check existing VMs and DataVolumes for the annotation (the kubectl sweep is in my detection post, linked below). Any hit with a foreign source namespace deserves a conversation.
  5. Track the fix: watch for a CDI release after v1.66.1 that includes PR #4346 (or the cherry-pick for your branch), and for Red Hat errata on the CVE page. Upgrade when it lands; keep the policy anyway.

Example admission policy (test before enforcing)

This is a ValidatingAdmissionPolicy, which reached general availability in Kubernetes 1.30. It is an example to test, not a vetted control: apply it with the binding in Warn and Audit mode first, confirm your VM CRD schema exposes these fields to CEL, then switch to Deny. It covers clone sources by PVC, snapshot and DataSource. If you use VirtualMachinePools, test that the VMs they create are also caught; I expect they are, since the pool controller creates VMs through the API, but I have not verified it.

apiVersion: admissionregistration.k8s.io/v1
kind: ValidatingAdmissionPolicy
metadata:
  name: deny-checkstaticvolume-cross-ns-clone
spec:
  failurePolicy: Fail
  matchConstraints:
    resourceRules:
    - apiGroups: ["kubevirt.io"]
      apiVersions: ["*"]
      operations: ["CREATE", "UPDATE"]
      resources: ["virtualmachines"]
  validations:
  - expression: >-
      !has(object.spec.dataVolumeTemplates) ||
      object.spec.dataVolumeTemplates.all(t,
        !(has(t.metadata) && has(t.metadata.annotations) &&
          'cdi.kubevirt.io/storage.checkStaticVolume' in t.metadata.annotations) ||
        !has(t.spec) ||
        (
          (!has(t.spec.source) || !has(t.spec.source.pvc) ||
           !has(t.spec.source.pvc.namespace) ||
           t.spec.source.pvc.namespace == request.namespace) &&
          (!has(t.spec.source) || !has(t.spec.source.snapshot) ||
           !has(t.spec.source.snapshot.namespace) ||
           t.spec.source.snapshot.namespace == request.namespace) &&
          (!has(t.spec.sourceRef) || !has(t.spec.sourceRef.namespace) ||
           t.spec.sourceRef.namespace == request.namespace)
        ))
    message: "DataVolumeTemplates with cdi.kubevirt.io/storage.checkStaticVolume may not clone from another namespace (CVE-2026-133879)."
---
apiVersion: admissionregistration.k8s.io/v1
kind: ValidatingAdmissionPolicyBinding
metadata:
  name: deny-checkstaticvolume-cross-ns-clone
spec:
  policyName: deny-checkstaticvolume-cross-ns-clone
  validationActions: ["Warn", "Audit"]

If nobody in your cluster uses Metro DR, a stricter version is simpler: reject the annotation on VM templates from tenant namespaces entirely, using a namespaceSelector in the binding. Kyverno and Gatekeeper can express the same logic; I am not posting untested rules for them here.

Detection and monitoring

No IOCs exist for this one, and you don’t need any: the evidence is in the objects themselves. Everything worth catching passes through the Kubernetes API audit log, but only if your audit policy records request bodies (Request level, ideally RequestResponse) for virtualmachines and datavolumes. That is not the default everywhere. OpenShift’s Default audit profile logs metadata only, so you need WriteRequestBodies or a custom rule before three of the four rules below can see anything. The fourth works at metadata level, if you deploy the admission policy above with the Audit action.

RuleCategoryLog sourceATT&CKLevel
virt-controller creates a cross-namespace clone DataVolume with checkStaticVolumeEmerging threatkubernetes / audit (request bodies)T1068, T1530High
VM DataVolumeTemplate with checkStaticVolume and a foreign clone sourceEmerging threatkubernetes / audit (request bodies)T1068, T1530High
Admission policy violation for the cross-namespace cloneEmerging threatkubernetes / audit (metadata + annotations)T1068High
checkStaticVolume set on any VM or DataVolumeHuntingkubernetes / audit (request/response bodies)T1068Low

The rule I would turn on first watches the deputy, not the tenant. It fires when the kubevirt-controller service account creates a DataVolume that carries the annotation and clones from a namespace other than its own. That is the moment the bypass actually works, and because a DataVolume’s source is a single object rather than a list, it is the rule that converts most cleanly to real SIEM queries. The fieldref filters drop same-namespace clones; check that your sigma-cli backend supports fieldref and exists, and that it maps a field name containing dots and a slash (the annotation key) correctly.

title: CDI DataVolume With checkStaticVolume Cross-Namespace Clone Created By KubeVirt Controller
id: 00777947-1699-457c-8de4-125b3ee2460d
status: test
description: |
    Detects the KubeVirt virt-controller service account creating a CDI DataVolume that carries the
    cdi.kubevirt.io/storage.checkStaticVolume annotation and clones from another namespace. In
    CVE-2026-133879 this is the confused-deputy step: the controller creates the clone under its own
    identity after the service-account clone check was waived. Needs audit level Request or higher for datavolumes.
references:
    - https://access.redhat.com/security/cve/CVE-2026-133879
    - https://bugzilla.redhat.com/show_bug.cgi?id=2578653
    - https://github.com/kubevirt/containerized-data-importer/pull/4346
    - https://github.com/kubevirt/kubevirt/blob/main/pkg/virt-operator/resource/generate/components/serviceaccountnames.go
    - https://netsec101.com/?p=399
author: netsec101.com
date: 2026-11-22
tags:
    - attack.privilege-escalation
    - attack.t1068
    - attack.collection
    - attack.t1530
    - cve.2026-133879
    - detection.emerging-threats
logsource:
    category: application
    product: kubernetes
    service: audit
detection:
    selection_dv_create:
        objectRef.apiGroup: 'cdi.kubevirt.io'
        objectRef.resource: 'datavolumes'
        verb: 'create'
    selection_controller:
        user.username|startswith: 'system:serviceaccount:'
        user.username|endswith: ':kubevirt-controller'
    selection_annotation:
        requestObject.metadata.annotations.cdi.kubevirt.io/storage.checkStaticVolume|exists: true
    selection_source_namespace:
        - requestObject.spec.source.pvc.namespace|exists: true
        - requestObject.spec.source.snapshot.namespace|exists: true
        - requestObject.spec.sourceRef.namespace|exists: true
    filter_main_same_namespace_pvc:
        requestObject.spec.source.pvc.namespace|fieldref: objectRef.namespace
    filter_main_same_namespace_snapshot:
        requestObject.spec.source.snapshot.namespace|fieldref: objectRef.namespace
    filter_main_same_namespace_sourceref:
        requestObject.spec.sourceRef.namespace|fieldref: objectRef.namespace
    condition: all of selection_* and not 1 of filter_main_*
falsepositives:
    - VMs whose service account was legitimately granted datavolumes/source in the source namespace and that also set the annotation; verify the RoleBinding in the source namespace
    - Metro DR restores where the VM template legitimately references a source namespace with this annotation; confirm with the DR owners and exclude by VM namespace
level: high

Be realistic about the VM-side rule. A VM’s dataVolumeTemplates is a list, and Sigma has no way to say “the annotation and the foreign namespace in the same list element”. Elasticsearch flattens the array and loses that pairing, Splunk names the field with {}, KQL needs mv-expand. Treat the Sigma version as the alerting layer and keep a jq pass over raw audit logs as the precise check.

Monitoring after patching: the fix removes the waiver, so any virt-controller DataVolume with this combination after your upgrade date means an unpatched component, a VM service account that really holds clone rights in the source namespace (check the RoleBinding), or something new. Retro-hunt your audit logs as far back as you keep them; the annotation has existed since February 2023, so there is no natural start date. Also sweep live VM specs, which keep their templates after the DataVolume is gone. There are no IOCs to age out; the rules stay valid as long as the annotation exists.

I wrote up all four rules, with the audit-policy settings, the Sigma limits on nested fields, the jq and kubectl hunts, tuning notes and ATT&CK coverage, in a separate detection post. The YAML lives in my Detection Rules repo.

My take

This is underrated, not because it is easy to exploit at scale (it is not) but because of what it says about Kubernetes multi-tenancy. RBAC gave the right answer here. The bypass lived in a controller that does work on your behalf and decided, based on a field you control, that the RBAC answer did not matter. Annotations are effectively an untyped, unvalidated side API. Every operator that reads “magic” annotations from user objects and then acts with its own service account deserves the same review: which annotations change authorization decisions, and can the tenant set them?

I also think the “allowed, but no token” pattern was a trap waiting to be sprung. Three-state authorization results are fine inside one function. Once they cross a package boundary, some caller will treat “not an error” as “yes”, and that is exactly what happened between CDI and KubeVirt. The upstream fix is correct and small. I would still like a KubeVirt-side change so virt-api rejects the combination at admission, defence in depth rather than trusting one shared helper.

If you run a shared virtualization cluster, do the RBAC audit this week. The surprise for most teams will be how many identities can create VMs through plain edit. Fixing that pays off well beyond this CVE.

Sources