GO-2026-5638: Kata Containers have VM Escape via virtiofsd Argument Injection through Default-Enabled Pod Annotations

Published Jul 23, 2026
·
Updated

Kata Containers is an open source project focusing on a standard implementation of lightweight Virtual Machines (VMs) that perform like containers. Versions prior to 3.31.0 ship with a default configuration that allows pod creators to inject arbitrary command-line arguments into the virtiofsd process through the io.katacontainers.config.hypervisor.virtiofsextraargs 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 kernelparams 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. Version 3.31.0 patches the issue.

Affected Software

1 affected component
Kata Containers Kata Containers<3.31.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Kata Containers to a version that resolves this vulnerability.

    Fixed in 3.31.0

Event History

Jul 23, 2026
CVE Published
via OSV·05:32 PM
Data Sourced
via OSV·05:32 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Who can exploit this issue in practice?

A pod creator who can set Kata Containers pod annotations can exploit it. The attack requires use of both the virtio_fs_extra_args annotation and the kernel_params annotation.

2

Are default Kata Containers deployments affected?

Yes. Versions prior to 3.31.0 ship with a default configuration that enables the annotations needed for the attack.

3

What access does successful exploitation provide?

An attacker can expose the host root filesystem inside the guest VM, then mount it using the agent debug console. This permits reading or writing arbitrary host files, including /etc/shadow.

4

What should be done if upgrading is not immediately possible?

Prevent pod creators from supplying the io.katacontainers.config.hypervisor.virtio_fs_extra_args and kernel_params annotations. These annotations are the default-enabled controls used to inject virtiofsd arguments and activate the agent debug console.

5

Which version fixes the issue?

Kata Containers 3.31.0 patches the issue.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203