CVE-2026-145026: WASI filesystem sandbox escape on Windows through a drive-prefixed path component
The wasmtime-wasi crate in Wasmtime before 36.0.22, 37.x through 48.x before 48.0.10, 49.x before 49.0.7, and 50.x before 50.0.3 on Windows mis-resolves drive-prefixed path components such as ./C:foo as drive-relative host paths, escaping the WASI filesystem sandbox. A guest with any preopened directory can use path-taking WASI functions or symlink targets to read, or with write access modify or delete, any file the host process can access.
Other sources
This is an entry in the RustSec database for the Wasmtime security advisory located at https://github.com/bytecodealliance/wasmtime/security/advisories/GHSA-f2pq-268w-886c For more information see the GitHub-hosted security advisory.
— OSV
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
rust/wasmtime-wasito a version that resolves this vulnerability.Fixed in 36.0.22 - Upgrade
Upgrade
rust/wasmtime-wasito a version that resolves this vulnerability.Fixed in 48.0.10 - Upgrade
Upgrade
rust/wasmtime-wasito a version that resolves this vulnerability.Fixed in 49.0.7 - Upgrade
Upgrade
rust/wasmtime-wasito a version that resolves this vulnerability.Fixed in 50.0.3 - Upgrade
Upgrade
wasmtime-wasito a version that resolves this vulnerability.Fixed in 36.0.22 - Upgrade
Upgrade
wasmtime-wasito a version that resolves this vulnerability.Fixed in 48.0.10 - Upgrade
Upgrade
wasmtime-wasito a version that resolves this vulnerability.Fixed in 49.0.7 - Upgrade
Upgrade
wasmtime-wasito a version that resolves this vulnerability.Fixed in 50.0.3
Event History
Frequently Asked Questions
Which deployments are exposed?
Only Windows deployments using the wasmtime-wasi crate are described as affected. The issue applies to Wasmtime versions before 36.0.22, 37.x through 48.x before 48.0.10, 49.x before 49.0.7, and 50.x before 50.0.3.
What must an attacker control to exploit this?
A WASI guest needs access to any preopened directory. It can then supply a drive-prefixed path component through path-taking WASI functions or a symlink target.
What access can exploitation provide?
The guest can escape the WASI filesystem sandbox and read files accessible to the host process. If its available access permits writing, it can also modify or delete files the host process can access.