Critical CVE-2026-47218 Allows Native Code Execution in Runwasi Before Version 0.6.1
A critical flaw in runwasi versions before 0.6.1 lets attackers bypass WebAssembly validation and execute native code within the container shim process.

Key points
- CVE-2026-47218 is rated CVSS 9.3 Critical and affects runwasi versions prior to 0.6.1.
- Attackers can execute native code by supplying crafted precompiled bytes in OCI image layers.
- The vulnerability escapes the WASI sandbox but does not bypass container isolation to the host.
The runwasi project has released version 0.6.1 to address a critical security vulnerability, identified as CVE-2026-47218, that allows unauthorized native code execution. This flaw exists in versions of the software prior to the 0.6.1 release and impacts the containerd-shim-wasmtime-v1 component.
At a glance
- CVE
- CVE-2026-47218
- Product
- containerd runwasi
- CVSS
- 9.3 Critical
- Weakness
- insecure deserialization
- Exploited
- No known exploitation
The issue arises because the shim incorrectly treats WebAssembly precompiled bytes supplied directly in an OCI image layer as trusted artifacts. According to the National Vulnerability Database record, the system deserializes these bytes as native code from the precompile-cache path. This behavior bypasses standard WebAssembly validation checks.
Technical Context and Impact
An attacker who causes a victim system to run a crafted container image can exploit this deserialization flaw. The attacker gains the ability to execute native code within the shim zygote process. This execution occurs with the same filesystem, environment, credentials, networking, and Linux syscall access available to the workload container itself.
The vulnerability is classified with a CVSS score of 9.3, which is rated as Critical. It is associated with CWE-502, which pertains to deserialization of untrusted data. The flaw allows an escape from the WASI sandbox boundary into the workload container boundary. However, the source material clarifies that this issue does not by itself bypass container isolation. It also does not provide direct code execution on the host system.
Scope and Affected Components
The primary affected component is containerd-shim-wasmtime-v1 in runwasi versions earlier than 0.6.1. The fix is confirmed only for this specific version boundary. Downstream shims built using runwasi's containerd-shim-wasm precompile-cache API may also be affected. These downstream products are vulnerable if they implement the Compiler interface and trust executable precompiled artifacts from OCI image layers.
The 0.6.1 boundary applies specifically to the containerd-shim-wasmtime component. It does not independently certify the security status of downstream product releases. Organizations using custom or downstream shims must verify their own implementations against the described trust assumptions.
What should you do?
Users of runwasi should immediately check their current version and upgrade to 0.6.1 or later if they are running affected versions. Administrators should audit their container images for any use of precompiled WebAssembly bytes in OCI layers. Teams should review their trust models for downstream shims that utilize the precompile-cache API. Security teams should monitor for any active exploitation attempts targeting this deserialization flaw.
What to do and how to stay safe: runwasi
- Verify your runwasi version and upgrade to 0.6.1 or newer to apply the confirmed fix.
- Audit container images to ensure no untrusted precompiled WebAssembly bytes are included in OCI layers.
- Review downstream shim configurations to confirm they do not trust executable artifacts from image layers without validation.
- Monitor system logs for unexpected native code execution within shim zygote processes.
Step-by-step guide: Risk-Based Vulnerability Management: Prioritize Fixes by Actual Danger
General security guidance from the Threat Times newsroom. It is not confirmed advice from the organisations named in this story.
Frequently asked questions
What is CVE-2026-47218?
It is a critical vulnerability in runwasi prior to version 0.6.1 that allows native code execution via crafted OCI image layers.
Does this vulnerability allow host takeover?
No, the flaw escapes the WASI sandbox to the workload container but does not bypass container isolation to the host.
Is there a fix available?
Yes, the issue is fixed in runwasi version 0.6.1.


