← Back to CVE Explorer

CVE-2026-13218

Full vulnerability record from the local CVENow database.

Description

A flaw was found in KubeVirt's virt-handler network cache handling. The WriteToCachedFile function writes data to a launcher-rooted path using os.WriteFile and os.Chown without symlink protection. A user with access to the virt-launcher container can plant a symlink at the cache file path, causing virt-handler to follow it and overwrite an arbitrary host file with JSON content and change its ownership.

Severity
MEDIUM
CVSS score
4.2 (v3.1)
Vulnerability status
Analyzed
Source identifier
Published
2026-06-26 00:16:51.147000
Last modified
2026-10-25 22:10:00.150000
View original CVE JSON
{
  "id": "CVE-2026-13218",
  "sourceIdentifier": "[email protected]",
  "published": "2026-06-26T00:16:51.147",
  "lastModified": "2026-10-25T22:10:00.150",
  "vulnStatus": "Analyzed",
  "cveTags": [],
  "descriptions": [
    {
      "lang": "en",
      "value": "A flaw was found in KubeVirt's virt-handler network cache handling. The WriteToCachedFile function writes data to a launcher-rooted path using os.WriteFile and os.Chown without symlink protection. A user with access to the virt-launcher container can plant a symlink at the cache file path, causing virt-handler to follow it and overwrite an arbitrary host file with JSON content and change its ownership."
    },
    {
      "lang": "es",
      "value": "Se encontró una vulnerabilidad en el manejo de la caché de red del virt-gestor de KubeVirt. La función WriteToCachedFile escribe datos en una ruta con raíz en el lanzador utilizando os.WriteFile y os.Chown sin protección contra enlaces simbólicos. Un usuario con acceso al contenedor virt-launcher puede colocar un enlace simbólico en la ruta del archivo de caché, haciendo que el virt-gestor lo siga y sobrescriba un archivo de host arbitrario con contenido JSON y cambie su propiedad."
    }
  ],
  "affected": [
    {
      "source": "[email protected]",
      "affectedData": [
        {
          "vendor": "Red Hat",
          "product": "Red Hat OpenShift Virtualization 4",
          "defaultStatus": "affected",
          "collectionURL": "https://access.redhat.com/downloads/content/package-browser/",
          "packageName": "container-native-virtualization/virt-handler",
          "cpes": [
            "cpe:/a:redhat:container_native_virtualization:4"
          ]
        },
        {
          "vendor": "Red Hat",
          "product": "Red Hat OpenShift Virtualization 4",
          "defaultStatus": "affected",
          "collectionURL": "https://access.redhat.com/downloads/content/package-browser/",
          "packageName": "container-native-virtualization/virt-handler-rhel9",
          "cpes": [
            "cpe:/a:redhat:container_native_virtualization:4"
          ]
        }
      ]
    }
  ],
  "metrics": {
    "cvssMetricV31": [
      {
        "source": "[email protected]",
        "type": "Secondary",
        "cvssData": {
          "version": "3.1",
          "vectorString": "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:N/I:L/A:L",
          "baseScore": 4.2,
          "baseSeverity": "MEDIUM",
          "attackVector": "LOCAL",
          "attackComplexity": "HIGH",
          "privilegesRequired": "LOW",
          "userInteraction": "NONE",
          "scope": "CHANGED",
          "confidentialityImpact": "NONE",
          "integrityImpact": "LOW",
          "availabilityImpact": "LOW"
        },
        "exploitabilityScore": 1.1,
        "impactScore": 2.7
      }
    ],
    "ssvcV203": [
      {
        "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
        "ssvcData": {
          "timestamp": "2026-06-26T14:58:08.187830Z",
          "id": "CVE-2026-13218",
          "options": [
            {
              "exploitation": "none"
            },
            {
              "automatable": "no"
            },
            {
              "technicalImpact": "partial"
            }
          ],
          "role": "CISA Coordinator",
          "version": "2.0.3"
        }
      }
    ]
  },
  "weaknesses": [
    {
      "source": "[email protected]",
      "type": "Secondary",
      "description": [
        {
          "lang": "en",
          "value": "CWE-61"
        }
      ]
    }
  ],
  "configurations": [
    {
      "nodes": [
        {
          "operator": "OR",
          "negate": false,
          "cpeMatch": [
            {
              "vulnerable": true,
              "criteria": "cpe:2.3:a:kubevirt:kubevirt:-:*:*:*:*:kubernetes:*:*",
              "matchCriteriaId": "06AF9668-6158-47F4-A755-0EE4D5F7F413"
            },
            {
              "vulnerable": true,
              "criteria": "cpe:2.3:a:redhat:openshift_virtualization:*:*:*:*:*:*:*:*",
              "versionStartIncluding": "4",
              "versionEndIncluding": "4.22.0",
              "matchCriteriaId": "5301905C-9B5C-479F-A69A-659C6CB3AA42"
            }
          ]
        }
      ]
    }
  ],
  "references": [
    {
      "url": "https://access.redhat.com/security/cve/CVE-2026-13218",
      "source": "[email protected]",
      "tags": [
        "Vendor Advisory",
        "Mitigation"
      ]
    },
    {
      "url": "https://bugzilla.redhat.com/show_bug.cgi?id=2492654",
      "source": "[email protected]",
      "tags": [
        "Issue Tracking",
        "Vendor Advisory"
      ]
    }
  ]
}