CVE-2026-13434

Virt-controller-rhel9: kubevirt: kubevirt: multus default-network annotation injection via unvalidated tenant networkname when externalnetresourceinjection is enabled

Published Jun 26, 2026 CVSS 3.1 · 4.9 Medium EPSS < 1% KEV · Not listed
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).

Analysis

AI-generated

Technical impact

A flaw in KubeVirt’s network annotation generator allows a tenant with kubevirt.io:edit permissions to inject unvalidated networkName values into a VirtualMachineInstance’s launcher pod. When the ExternalNetResourceInjection feature gate is enabled, the plugin skips the standard NAD validation, and the attacker can supply a JSON NetworkSelectionElement array that specifies any namespace, network attachment, static IP, and MAC address. This results in the launcher pod being attached to arbitrary networks across namespaces, enabling cross‑namespace connectivity and IP/MAC impersonation on normally isolated network segments.

Affected Systems

Red Hat OpenShift Virtualization 4 is affected, specifically the KubeVirt component starting with version 1.8.0 (first shipped in OpenShift Virtualization 4.21). Any cluster that has enabled the ExternalNetResourceInjection Beta feature gate is vulnerable, regardless of the specific OpenShift Virtualization minor version. The vulnerability directly impacts tenants that can create or modify VirtualMachineInstances with Multus network configurations.

Risk and Exploitability

The CVSS score is 4.9, indicating a medium confidentiality impact when the feature gate is enabled. EPSS is not available, and the vulnerability is not listed in CISA’s KEV catalog. Exploitation requires cluster‑admin access to enable the feature gate and tenant permissions to edit kubevirt resources. The attack is less likely to succeed by default because the gate is off and is restricted to cluster‑admins, but once enabled, the path to compromise is straightforward and does not require additional privilege escalation. Consequently, organizations should treat the risk as moderate but mitigate promptly if the feature is required for operational reasons.

Remediation

Vendor Workaround

If the ExternalNetResourceInjection feature gate has been enabled, disable it by removing it from the HyperConverged CR's spec.featureGates configuration. This restores the NAD lookup that blocks malformed network names. If the feature gate is required for operational reasons, restrict kubevirt.io:edit permissions to trusted users only and enforce NetworkPolicy on sensitive network segments to limit lateral movement from unauthorized attachments.


OpenCVE Recommended Actions

  • Disable the ExternalNetResourceInjection feature gate by removing it from the HyperConverged Custom Resource’s spec.featureGates configuration.
  • If disabling is not feasible, restrict kubevirt.io:edit permissions to a trusted set of users to prevent unauthorized NetworkSelectionElement injection, and enforce NetworkPolicy rules on sensitive network segments to limit lateral movement.
  • Regularly audit launched pods for unexpected v1.multus-cni.io/default‑network annotations and verify that assigned networks match tenant namespaces.

Generated by OpenCVE AI on June 26, 2026 at 18:02 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Redhat openshift Virtualization
Vendors & Products Redhat openshift Virtualization
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
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).
Title Virt-controller-rhel9: kubevirt: kubevirt: multus default-network annotation injection via unvalidated tenant networkname when externalnetresourceinjection is enabled
First Time appeared Redhat
Redhat container Native Virtualization
Weaknesses CWE-20
CPEs cpe:/a:redhat:container_native_virtualization:4
Vendors & Products Redhat
Redhat container Native Virtualization
References
Metrics cvssV3_1

{'score': 4.9, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:L/A:N'}

Weaknesses
  • CWE-20

    Improper Input Validation

Sources

Status
PUBLISHED
Assigner
redhat
Published
Updated
Jun 27, 2026, 2:38 AM
Reserved
Jun 26, 2026, 2:59 PM
Status
Analyzed
Published
Jun 26, 2026, 5:16 PM
Modified
Oct 25, 2026, 5:10 PM
Severity
Moderate
Public date
Jun 26, 2026, 12:00 AM