CVE-2026-50540

Kata Containers: Config Path Annotation Arbitrary File Loading

Published Aug 7, 2026 CVSS 3.1 · 9.6 Critical EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

Kata Containers permits pod users to supply the io.katacontainers.config_path annotation, which points to a TOML configuration file stored on the host. The runtime does not validate the path and loads the referenced file without restriction. An attacker who can place a file at a host‑visible location can craft a configuration that selects an attacker‑controlled hypervisor or virtio‑fs binary, causing the runtime to execute that binary with root privileges on the host. This bypasses container isolation and results in arbitrary code execution.

Affected Systems

The affected product is the Kata Containers runtime prior to version 4.0.0. All releases of kata-runtime that allow the io.katacontainers.config_path annotation are vulnerable. No other vendor or product variants are listed in the CVE data.

Risk and Exploitability

The CVSS score of 9.6 signals a critical severity. No EPSS score is available, so the current likelihood of exploitation cannot be quantified, and the issue is not listed in CISA KEV. Based on the description, it is inferred that an attacker must be able to create or modify a pod and write a file to a host‑visible path; thus the attack vector requires cluster‑level or privileged access within the orchestration environment.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Kata Containers to version 4.0.0 or later to eliminate the ability to set an arbitrary config_path annotation.
  • Configure Kubernetes admission controllers to reject or strip the io.katacontainers.config_path annotation from pod manifests.
  • Restrict pod creation privileges to trusted users and enforce least‑privilege policies to limit who can create or modify pods.

Generated by OpenCVE AI on August 7, 2026 at 23:23 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description A flaw was found in Kata Containers, affecting both its Rust and Go runtimes. An authenticated pod user can exploit this by setting the `io.katacontainers.config_path` annotation to an arbitrary configuration file on the host. This allows the attacker to control privileged runtime settings, leading to the execution of malicious binaries as root on the host system. The primary consequence is arbitrary code execution with elevated privileges. 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.
Title kata-runtime: kata-runtime-rs: Kata Containers: Arbitrary code execution via manipulated configuration path Kata Containers: Config Path Annotation Arbitrary File Loading
Weaknesses CWE-22
References
Metrics cvssV3_1

{'score': 8.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}

cvssV3_1

{'score': 9.6, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N'}

Type Values Removed Values Added
First Time appeared Katacontainers
Katacontainers kata-containers
Vendors & Products Katacontainers
Katacontainers kata-containers
Type Values Removed Values Added
Description A flaw was found in Kata Containers, affecting both its Rust and Go runtimes. An authenticated pod user can exploit this by setting the `io.katacontainers.config_path` annotation to an arbitrary configuration file on the host. This allows the attacker to control privileged runtime settings, leading to the execution of malicious binaries as root on the host system. The primary consequence is arbitrary code execution with elevated privileges.
Title kata-runtime: kata-runtime-rs: Kata Containers: Arbitrary code execution via manipulated configuration path
Weaknesses CWE-20
References
Metrics threat_severity

None

cvssV3_1

{'score': 8.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}

threat_severity

Important

Weaknesses
  • CWE-20

    Improper Input Validation

  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Aug 24, 2026, 6:13 AM
Reserved
Jun 4, 2026, 8:37 PM
Status
Deferred
Published
Aug 7, 2026, 9:17 PM
Modified
Sep 9, 2026, 9:02 PM
Severity
Important
Public date
Jul 20, 2026, 12:00 PM