JLSEC-2026-2442: Wasmtime before 24.0.13, 25.0.0 before 36.0.14, 37.0.0 before 46.0.3, and 47.0.0 before 47.0.4...
Wasmtime before 24.0.13, 25.0.0 before 36.0.14, 37.0.0 before 46.0.3, and 47.0.0 before 47.0.4 allows a filesystem sandbox escape in wasmtime-wasi because its cap-std dependency mishandles symlinks with trailing slashes on macOS and Linux kernels lacking openat2. A guest with write access to any sandboxed directory can read and write any host-accessible file, and read-only guests may read host files via preexisting symlinks.
Affected Software
Event History
Child vulnerabilities
Contains the following vulnerabilities.
Frequently Asked Questions
Which deployments are exposed to the filesystem sandbox escape?
The issue affects wasmtime-wasi on macOS and on Linux kernels that lack openat2. A guest must have access to a sandboxed directory; guests with write access have the most severe impact.
What access does an attacker need inside the WebAssembly guest?
An attacker needs to control or operate a guest that has filesystem access within the sandbox. A guest with write access to any sandboxed directory can read and write host-accessible files, while a read-only guest may be able to read host files through preexisting symlinks.
How can I determine whether my environment is affected?
Check whether the bundled Wasmtime version is earlier than 24.0.13, 36.0.14 for the 25.0.0 line, 46.0.3 for the 37.0.0 line, or 47.0.4 for the 47.0.0 line. Also verify whether the workload uses wasmtime-wasi on macOS or on Linux without openat2 and grants guests filesystem access.