4.9medium
Virt-controller-rhel9: kubevirt: kubevirt: multus default-network annotation injection via unvalidated tenant networkname when externalnetresourceinjection is enabled
- Severity
- 4.9medium CVSS:3.1 by redhat
- Exploit likelihood
- 0.15% (higher than 4% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- redhat
Description
A flaw was found in KubeVirt's network annotation generator. When a tenant creates a VirtualMachineInstance with a Multus network configuration, the supplied networkName value is written verbatim into the launcher pod's v1.multus-cni.io/default-network annotation without format validation or sanitization. The only admission check rejects empty strings; no DNS-1123 format validation, JSON detection, or special character rejection is performed. When the ExternalNetResourceInjection Beta feature gate is enabled (off by default, cluster-admin only), the NAD lookup that would otherwise catch malformed names is skipped by design. A tenant with kubevirt.io:edit permissions can inject a JSON-formatted NetworkSelectionElement array specifying an arbitrary namespace, NAD name, static IP address, and MAC address. Multus on the node parses this JSON and attaches the launcher pod to the specified network attachment in any namespace, enabling cross-namespace network access and IP/MAC impersonation on network segments normally segregated from tenant workloads. The ExternalNetResourceInjection feature gate was introduced in KubeVirt v1.8.0 (first shipped in OpenShift Virtualization 4.21).
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| container-native-virtualization/virt-controller-rhel9 | Not specified | CVE List |
| kubevirt kubevirt | Not specified | NVD |
| redhat openshift_virtualization | from 4 up to 4.22.0 | NVD |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
A flaw was found in KubeVirt's network annotation generator. When a tenant creates a VirtualMachineInstance with a Multus network configuration, the supplied networkName value is written verbatim into the launcher pod's v1.multus-cni.io/default-network annotation without format validation or sanitization. The only admission check rejects empty strings; no DNS-1123 format validation, JSON detection, or special character rejection is performed. When the ExternalNetResourceInjection Beta feature gate is enabled (off by default, cluster-admin only), the NAD lookup that would otherwise catch malformed names is skipped by design. A tenant with kubevirt.io:edit permissions can inject a JSON-formatted NetworkSelectionElement array specifying an arbitrary namespace, NAD name, static IP address, and MAC address. Multus on the node parses this JSON and attaches the launcher pod to the specified network attachment in any namespace, enabling cross-namespace network access and IP/MAC impersonation on network segments normally segregated from tenant workloads. The ExternalNetResourceInjection feature gate was introduced in KubeVirt v1.8.0 (first shipped in OpenShift Virtualization 4.21).
NVD (es)
Se encontró un fallo en el generador de anotaciones de red de KubeVirt. Cuando un inquilino crea una VirtualMachineInstance con una configuración de red Multus, el valor networkName proporcionado se escribe textualmente en la anotación v1.multus-cni.io/default-network del pod lanzador sin validación de formato ni saneamiento. La única comprobación de admisión rechaza cadenas vacías; no se realiza validación de formato DNS-1123, detección de JSON ni rechazo de caracteres especiales. Cuando la puerta de características Beta ExternalNetResourceInjection está habilitada (deshabilitada por defecto, solo para administradores de clúster), la búsqueda de NAD que de otro modo detectaría nombres mal formados se omite por diseño. Un inquilino con permisos kubevirt.io:edit puede inyectar una matriz NetworkSelectionElement con formato JSON especificando un espacio de nombres arbitrario, nombre de NAD, dirección IP estática y dirección MAC. Multus en el nodo analiza este JSON y adjunta el pod lanzador a la conexión de red especificada en cualquier espacio de nombres, lo que permite el acceso a la red entre espacios de nombres e impersonación de IP/MAC en segmentos de red normalmente segregados de las cargas de trabajo de los inquilinos. La puerta de características ExternalNetResourceInjection se introdujo en KubeVirt v1.8.0 (distribuida por primera vez en OpenShift Virtualization 4.21).
References
| https://access.redhat.com/security/cve/CVE-2026-13434 | mitigation, vdb-entry, vendor-advisory | |
| https://bugzilla.redhat.com/show_bug.cgi?id=2493576 | issue-tracking, vendor-advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-13434 changed 2026-06-27 | CVE Terms of Use |
| NVD | CVE-2026-13434 changed 2026-10-25 | Public domain |