CVE-2026-47218

runwasi: Forged Wasmtime precompiled OCI layer bypasses runwasi WASI sandbox

Published Oct 15, 2026 CVSS 4.0 · 9.3 Critical EPSS < 1% KEV · Not listed
Description
runwasi facilitates running Wasm and WASI workloads managed by containerd. Prior to 0.6.1, containerd-shim-wasmtime-v1 can treat Wasmtime precompiled bytes supplied directly in an OCI image layer as a trusted artifact from the precompile-cache path and deserialize them as native code. An attacker who causes a victim to run a crafted image can bypass WebAssembly validation and execute native code in the shim zygote process, gaining the filesystem, environment, credentials, networking, and Linux syscall access available to the workload container. Downstream shims built with runwasi's containerd-shim-wasm precompile-cache API are also affected if they implement Compiler and trust executable precompiled artifacts from OCI image layers; the 0.6.1 boundary applies specifically to containerd-shim-wasmtime and does not independently certify downstream product releases. The flaw escapes the WASI sandbox to the workload container boundary, but it does not by itself bypass container isolation or provide direct host code execution. This issue is fixed in version 0.6.1.

Analysis

AI-generated

Technical impact

runwasi, a component that enables containerd to run WebAssembly and WASI workloads, has a critical deserialization flaw (CWE-502). Prior to version 0.6.1, the shim interpreted Wasmtime precompiled bytecode supplied in an OCI image layer as trusted data from a local cache and executed it as native code. An attacker who can get a victim to run a crafted image can bypass WebAssembly validation, inject malicious native code, and gain full filesystem, environment, credential, networking, and syscall access within the workload container. The vulnerability escapes the intended WASI sandbox but still requires the victim to launch the tampered image, and it does not directly break container isolation or provide host code execution on its own.

Affected Systems

The flaw affects the containerd-runwasi shim, specifically containerd-shim-wasmtime-v1 prior to release 0.6.1. Any downstream shim that adopts runwasi’s precompile‑cache API and trusts executable artifacts from OCI image layers is also vulnerable, even if the downstream product is not the original containerd variant. Versions 0.6.1 and later of containerd-shim-wasmtime are free of this defect, while earlier releases remain at risk.

Risk and Exploitability

The CVSS v3 score of 9.3 marks this as a critical vulnerability, and the EPSS score of less than 1% indicates that while exploitation is possible, it is unlikely to be widespread. This issue is not listed in CISA’s KEV catalog. Attackers would need the ability to push a malicious OCI image to a vulnerable system, but once that is achieved, the ability to execute arbitrary native code inside the shim can be leveraged to compromise the workload container. The lack of direct host impact limits the overall scope compared to full host escalation vulnerabilities, yet the impact within containers is severe.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the containerd-runwasi shim to version 0.6.1 or later, which removes the trusted precompile cache handling for OCI image layers.
  • If an immediate upgrade is not feasible, disable the precompiled Wasmtime cache feature or prevent the shim from loading precompiled artifacts from OCI layers by configuring appropriate image policies.
  • For older releases, apply the patch commit d28ab73c2c8a6c50d1927078821bd418b9e51638 or backport the fix, and verify that the containerd environment rejects OCI layers containing precompiled code.

Generated by OpenCVE AI on October 16, 2026 at 19:55 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Containerd
Containerd runwasi
Vendors & Products Containerd
Containerd runwasi
Type Values Removed Values Added
Metrics ssvc

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

Type Values Removed Values Added
Description runwasi facilitates running Wasm and WASI workloads managed by containerd. Prior to 0.6.1, containerd-shim-wasmtime-v1 can treat Wasmtime precompiled bytes supplied directly in an OCI image layer as a trusted artifact from the precompile-cache path and deserialize them as native code. An attacker who causes a victim to run a crafted image can bypass WebAssembly validation and execute native code in the shim zygote process, gaining the filesystem, environment, credentials, networking, and Linux syscall access available to the workload container. Downstream shims built with runwasi's containerd-shim-wasm precompile-cache API are also affected if they implement Compiler and trust executable precompiled artifacts from OCI image layers; the 0.6.1 boundary applies specifically to containerd-shim-wasmtime and does not independently certify downstream product releases. The flaw escapes the WASI sandbox to the workload container boundary, but it does not by itself bypass container isolation or provide direct host code execution. This issue is fixed in version 0.6.1.
Title runwasi: Forged Wasmtime precompiled OCI layer bypasses runwasi WASI sandbox
Weaknesses CWE-502
References
Metrics cvssV4_0

{'score': 9.3, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-502

    Deserialization of Untrusted Data

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Oct 15, 2026, 7:55 PM
Reserved
May 18, 2026, 10:25 PM
Status
Awaiting Analysis
Published
Oct 15, 2026, 7:17 PM
Modified
Oct 16, 2026, 4:00 PM