CVE-2026-13318
JSON

6.4medium

Virt-api-rhel9: kubevirt: kubevirt: ssrf in virt-api port-forward via unvalidated guest-agent-reported ip

Severity
6.4medium CVSS:3.1 by redhat
Exploit likelihood
0.15% (higher than 4% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
redhat
Also known as
GHSA-cgm6-wvp9-4g5hGO-2026-7017

Description

A server-side request forgery (SSRF) flaw was found in KubeVirt's virt-api port-forward handler. When processing a port-forward request to a VirtualMachineInstance (VMI), virt-api reads the target IP from vmi.Status.Interfaces[0].IP and passes it directly to net.Dial() without validation. For VMIs using non-masquerade network bindings (bridge or secondary-only), this IP is reported by the QEMU guest agent running inside the VM and is fully controllable by the VM owner. An attacker with kubevirt.io:edit permissions can create a VM with a modified guest agent that reports an arbitrary IP address, then request port-forward to establish a bidirectional TCP tunnel from virt-api's cluster-internal network position to any routable destination, bypassing NetworkPolicy isolation.

Affected

Product or packageVersionsReported by
container-native-virtualization/virt-apiNot specifiedCVE List
container-native-virtualization/virt-api-rhel9Not specifiedCVE List
kubevirt.io/kubevirt (Go)before 1.10.0-rc.0GitHub Advisory Database, Go Vulnerability Database
kubevirt kubevirtNot specifiedNVD
redhat openshift_virtualizationfrom 4 up to 4.22.0NVD

All scores

redhat6.4medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
GitHub6.4medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N

Classification

CWE-918

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

A server-side request forgery (SSRF) flaw was found in KubeVirt's virt-api port-forward handler. When processing a port-forward request to a VirtualMachineInstance (VMI), virt-api reads the target IP from vmi.Status.Interfaces[0].IP and passes it directly to net.Dial() without validation. For VMIs using non-masquerade network bindings (bridge or secondary-only), this IP is reported by the QEMU guest agent running inside the VM and is fully controllable by the VM owner. An attacker with kubevirt.io:edit permissions can create a VM with a modified guest agent that reports an arbitrary IP address, then request port-forward to establish a bidirectional TCP tunnel from virt-api's cluster-internal network position to any routable destination, bypassing NetworkPolicy isolation.

Go Vulnerability Database

KubeVirt virt-api port-forward handler vulnerable to SSRF via guest-controlled VMI IP address in kubevirt.io/kubevirt

NVD (es)

Una vulnerabilidad de falsificación de petición del lado del servidor (SSRF) fue encontrada en el gestor de reenvío de puertos de la API virt de KubeVirt. Al procesar una petición de reenvío de puertos a una instancia de máquina virtual (VMI), la API virt lee la dirección IP de destino de vmi.Status.Interfaces[0].IP y la pasa directamente a net.Dial() sin validación. Para las VMI que utilizan enlaces de red sin enmascaramiento (puente o solo secundario), esta dirección IP es reportada por el agente invitado QEMU que se ejecuta dentro de la VM y es totalmente controlable por el propietario de la VM. Un atacante con permisos kubevirt.io:edit puede crear una VM con un agente invitado modificado que reporta una dirección IP arbitraria, luego solicitar el reenvío de puertos para establecer un túnel TCP bidireccional desde la posición de red interna del clúster de la API virt a cualquier destino enrutable, eludiendo el aislamiento de NetworkPolicy.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-13318 changed 2026-11-26CVE Terms of Use
GitHub Advisory DatabaseGHSA-cgm6-wvp9-4g5h changed 2026-11-23CC-BY-4.0
Go Vulnerability DatabaseGO-2026-7017 changed 2026-11-23CC-BY-4.0
NVDCVE-2026-13318 changed 2026-10-25Public domain