← Back to Patch Radar
PATCH RADAR / CVE-2026-47218

CVE-2026-47218: runwasi shim trusts precompiled code from images (fixed in 0.6.1)

A crafted container image can make the runwasi Wasmtime shim run unvalidated native code inside the workload container. Check your shim versions and upgrade to 0.6.1.

Critical · CVSS-B 4.0 · 9.3 · CVE disclosed
Published by phil.on on
THE FLAW, SIMPLY EXPLAINED

How this vulnerability works

runwasi lets containers run WebAssembly programs inside a safety sandbox, but before version 0.6.1 the Wasmtime shim could load precompiled code from an image without the usual safety checks.

  1. How it starts

    A specially built image is run

    Someone persuades a victim to run a container image they supply. That image carries precompiled program code in one of its layers. The source does not explain how the victim is persuaded or what access the image author already has.

  2. What goes wrong

    The safety check is skipped

    The shim normally treats precompiled code from its trusted cache as already checked. It cannot tell the two sources apart, so the image's code skips the usual WebAssembly safety check and runs as ordinary machine code inside the process that starts the workload.

  3. What it means for you

    Workload container access is exposed

    The running code gains the files, settings, sign-in credentials, network connections and system calls available to the workload container. The source says this does not by itself break container isolation or give direct access to the host machine.

An everyday comparisonIt is like a mailroom that normally accepts parcels only from a pre-screened supplier, then starts accepting parcels that merely look like they came from that supplier. Items that were never inspected get treated as checked goods and delivered inside the building.

A simplified explanation of the reported flaw. Actual risk depends on the affected version and how the system is used.

Affected products

  • runwasi (containerd-shim-wasmtime-v1, and other shims built on runwasi's containerd-shim-wasm precompile-cache interface): versions prior to 0.6.1 are affected. The 0.6.1 fix applies specifically to containerd-shim-wasmtime; downstream shims are not certified by that version and must confirm their own status with their maintainers.
  • CVSS 4.0 score: 9.3 (high severity).
  • Scope note: the flaw lets code escape the WebAssembly (WASI) sandbox up to the workload container boundary. It does not by itself break container isolation or give direct code execution on the host.
  • Affected version ranges for downstream shims are not confirmed by the source; consult each shim's own release notes.

Why it matters

runwasi is a project that lets containerd run small programs compiled to WebAssembly, a portable format normally kept inside a strict safety sandbox. Before version 0.6.1, the Wasmtime version of the runwasi shim could mistake precompiled program bytes carried inside a container image for a trusted, already-checked file, and load them as ordinary machine code. Because that shortcut skips the usual safety checks on WebAssembly, someone who gets a victim to run a specially built image could run their own code inside the helper process that starts the workload. That code would then have the same access as the workload container itself, including its files, settings, sign-in credentials, network connections and system calls.

The problem stays within the workload container boundary: the source states it does not by itself break container isolation or give direct access to the host machine. Any container image a victim is asked to run should be treated as a possible route, so operators who run Wasm workloads on this shim should check their installed version and upgrade to 0.6.1, and should confirm the status of any other shim built on runwasi's precompile-cache interface.

Checks and remediation

What to check

  1. Identify which Wasm shim your container runtime uses. If it is containerd-shim-wasmtime-v1, find the installed version and compare it with 0.6.1.
  2. On each host running the shim, list the installed package or binary and record its version, for example by querying the package manager for the shim package or by running the shim binary with a version flag.
  3. Review the shim configuration and the image layers you pull for Wasm workloads: does anything supply precompiled WebAssembly artifacts inside image layers, which the source identifies as the route for this flaw?
  4. If you use a different shim built on runwasi's containerd-shim-wasm precompile-cache interface, ask its maintainers whether it is affected. The 0.6.1 boundary in the source covers containerd-shim-wasmtime only.
  5. Inventory container images you run that come from outside your organisation and note which ones were deployed as Wasm workloads.

Remediation steps

  1. Self-hosted Ubuntu/Linux and other self-managed hosts: upgrade the runwasi Wasmtime shim to version 0.6.1 or later through your normal package or binary update process, then restart the container runtime so the new shim is loaded. You are responsible for patching hosts you manage yourself.
  2. Container images: rebuild and redeploy any images that bundle the shim so they ship version 0.6.1 or later, and pull the updated images onto your hosts.
  3. AWS: if you run Wasm workloads on self-managed EC2 instances or self-managed Kubernetes nodes, apply step 1 on those hosts. If you use a managed service, ask the provider whether the shim version in use is affected and when the fix is applied; the source does not name specific AWS services.
  4. GCP: the same applies to self-managed Compute Engine instances or self-managed Kubernetes nodes. For managed services, confirm with the provider which shim version is used and when it will be updated; the source does not name specific GCP services.
  5. Downstream shims: if you maintain or deploy a shim built on runwasi's precompile-cache interface, confirm with its maintainers that it no longer trusts executable precompiled artifacts taken from image layers, and upgrade to the release they confirm as fixed.
  6. Reversible defensive measure: until you can upgrade, restrict which container images and registries your cluster or hosts will run, and avoid running Wasm images from untrusted sources. The source lists no official workaround, so treat this as a temporary precaution only, and follow the vendor advisory for further guidance.
  7. Verification: after upgrading, re-check the installed shim version on each host to confirm it reports 0.6.1 or later, restart the runtime, and run a known-good Wasm workload to confirm it starts correctly. Remove or rebuild any images still carrying the older shim.

Patch status

Patch status unconfirmed.

Workarounds

Workaround not documented.

CVSS and CWE

CVSS-B 4.0 · 9.3 · GitHub_M ↗
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

Additional CVSS assessments by source and scope
  • CVSS-B 4.0 · 9.3 · [email protected] ↗
    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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • CVSS-B 4.0 · 9.3 · GitHub_M ↗
    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

References

SHARE THIS NOTE