Severity by source
AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N
Requires pod-level access plus staging a file on a host-visible path (AV:L/PR:L); yields root code execution across the guest-to-host boundary, so S:C with full C/I/A:H.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
4DescriptionCVE.org
Kata Containers is an open source project focusing on a standard implementation of lightweight Virtual Machines (VMs) that perform like containers. Prior to version 4.0.0, kata-runtime is vulnerable to host code execution via an unvalidated configuration path annotation. The runtime accepts an arbitrary io.katacontainers.config_path pod annotation and loads the referenced host TOML file without restriction. As a result, a pod user who can place a file at a host-visible path can supply a configuration that selects an attacker-controlled hypervisor or virtio-fs daemon binary, executing code as root on the host. This issue is fixed in version 4.0.0.
AnalysisAI
Host root code execution in Kata Containers kata-runtime prior to 4.0.0 lets a pod user escape the guest VM boundary by abusing the unvalidated 'io.katacontainers.config_path' pod annotation, which caused the runtime to load an arbitrary host TOML configuration file without restriction. Because that config selects the hypervisor and virtio-fs daemon binaries, an attacker who can both set the annotation and drop a file at a host-visible path can point the runtime at an attacker-controlled binary and have it executed as root on the host, collapsing the security isolation Kata exists to provide (CVSS 9.6, scope-changed). There is no public exploit identified at time of analysis, but the fix (removal of the annotation in version 4.0.0) is confirmed by the vendor GHSA advisory and commit.
Technical ContextAI
Kata Containers provides lightweight VMs that behave like containers, integrating with Kubernetes/containerd via a shimv2 runtime to give each pod hardware-virtualization isolation instead of shared-kernel namespaces. The runtime reads its operational parameters - including which hypervisor (e.g. QEMU/Cloud Hypervisor) and which virtio-fs daemon binary to launch - from a trusted host-side TOML configuration file. The root cause is CWE-20 (Improper Input Validation): the runtime honored a user-supplied 'io.katacontainers.config_path' OCI annotation as the highest-priority source for the config file location (ahead of the KATA_CONF_FILE environment variable and the shimv2 create-task option), meaning an untrusted pod could redirect the runtime to a configuration it controls. Since that configuration dictates the paths of privileged host binaries the runtime spawns as root, control over the config equals control over host code execution. The CPE cpe:2.3:a:kata-containers:kata-containers:*:*:*:*:*:*:*:* covers all versions before the 4.0.0 fix, and the commit (03cc670) removes the SANDBOX_CFG_PATH_KEY annotation, the get_sandbox_config_path()/GetSandboxConfigPath() accessors, and the annotation branch in loadRuntimeConfig across both the Go and Rust runtimes.
RemediationAI
Vendor-released patch: upgrade Kata Containers to version 4.0.0 or later, which removes the 'io.katacontainers.config_path' annotation entirely so the runtime can no longer be redirected to an untrusted configuration file (per GHSA-mp2j-xm59-qfgw and commit 03cc670). If you cannot upgrade immediately, apply compensating controls: enforce an admission controller (e.g. Kubernetes OPA/Gatekeeper or Pod Security admission) to reject any pod carrying the 'io.katacontainers.config_path' annotation - the trade-off is that any legitimate but unusual per-pod config-path use will also be blocked; restrict which workloads can write to host-visible filesystem paths by eliminating untrusted hostPath mounts and tightening shared-directory permissions so a pod cannot stage an attacker-controlled TOML/binary where the runtime can read it; and treat all Kata-hosted tenants as untrusted, isolating them to dedicated nodes. These controls reduce but do not fully eliminate exposure, so upgrading to 4.0.0 remains the definitive fix.
More in Kata Containers
View allSandbox escape in Kata Containers allowing guest VM to access host resources. CVSS 10.0 — undermines the core security g
Privilege escalation in Kata Containers (versions prior to 3.27.0) running on the Cloud Hypervisor backend lets a suffic
An issue was discovered in Kata Containers through 1.11.3 and 2.x through 2.0-rc1. Rated high severity (CVSS 8.8), this
Arbitrary file write in Kata Containers v3.4.0 to v3.28.0 allows untrusted hosts to overwrite binaries and exfiltrate da
An improper file permissions vulnerability affects Kata Containers prior to 1.11.5. Rated high severity (CVSS 7.1), this
Authorization bypass in the kata-agent's ttRPC API allows an untrusted host to invoke two mem-agent methods unconditiona
Same weakness CWE-20 – Improper Input Validation
View allVendor StatusVendor
Share
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-54679