CVE-2026-13318
Received Received - Intake
SSRF in KubeVirt virt-api via VMI Interface IP

Publication date: 2026-06-26

Last updated on: 2026-06-26

Assigner: Red Hat, Inc.

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.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-06-26
Last Modified
2026-06-26
Generated
2026-06-26
AI Q&A
2026-06-26
EPSS Evaluated
N/A
NVD
EUVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
kubevirt kubevirt *
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-918 The web server receives a URL or similar request from an upstream component and retrieves the contents of this URL, but it does not sufficiently ensure that the request is being sent to the expected destination.
Attack-Flow Graph
AI Quick Actions
Instant insights powered by AI
Executive Summary

This vulnerability is a server-side request forgery (SSRF) flaw found in KubeVirt's virt-api port-forward handler. The issue occurs because the virt-api reads the target IP address from a VirtualMachineInstance's (VMI) status without validating it, then uses this IP directly to establish network connections. For VMIs using non-masquerade network bindings (such as bridge or secondary-only), the IP address is reported by the QEMU guest agent inside the VM and can be controlled by the VM owner. An attacker with edit permissions can exploit this by creating a VM with a modified guest agent that reports any IP address they choose, allowing them to create a TCP tunnel from the cluster-internal network to any routable destination, bypassing network isolation policies.

Impact Analysis

This vulnerability can allow an attacker with certain permissions to bypass network isolation controls within a Kubernetes cluster. By exploiting the flaw, the attacker can establish a bidirectional TCP tunnel from the cluster's internal network position to any routable IP address. This means they could potentially access internal services or systems that should be protected by network policies, leading to unauthorized access, data exposure, or lateral movement within the network.

Detection Guidance

Detection of this vulnerability involves monitoring for unusual port-forward requests to VirtualMachineInstances (VMIs) that use non-masquerade network bindings such as bridge or secondary-only modes.

Since the vulnerability arises from the virt-api reading an IP address from vmi.Status.Interfaces[0].IP without validation and passing it to net.Dial(), you can check for port-forward requests that establish TCP tunnels to unexpected or arbitrary IP addresses.

Commands to help detect potential exploitation might include:

  • Using kubectl to list VMIs and inspect their network interfaces: `kubectl get vmi -o jsonpath='{.items[*].status.interfaces[*].ip}'`
  • Monitoring port-forward sessions and their target IPs by checking logs of virt-api or network traffic capturing tools to identify connections to unusual IP addresses.
  • Using network monitoring tools like tcpdump or Wireshark to capture and analyze traffic originating from virt-api to detect unexpected TCP tunnels.
Mitigation Strategies

Immediate mitigation steps include restricting permissions to prevent untrusted users from creating or modifying VMIs with non-masquerade network bindings.

Specifically, limit or revoke kubevirt.io:edit permissions from users who do not require them, as this permission allows creation of VMs with modified guest agents that can exploit this vulnerability.

Additionally, avoid using non-masquerade network bindings (bridge or secondary-only) for VMIs unless absolutely necessary, since VMIs using the default masquerade binding are not affected.

Monitoring and logging port-forward requests and network traffic can also help detect and prevent exploitation attempts.

Compliance Impact

The provided information does not specify how this SSRF vulnerability in KubeVirt's virt-api port-forward handler impacts compliance with common standards and regulations such as GDPR or HIPAA.

Chat Assistant
Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-13318. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70
EPSS Chart