# GHSA-F2PQ-268W-886C: WASI filesystem sandbox escape on Windows through a drive-prefixed path component

- Database: GitHub
- Severity: CVSS 7.5 (High)
- Published: 2026-11-19
- Modified: 2026-11-19

## Affected versions

- wasmtime-wasi (crates.io): fixed in 36.0.22
- wasmtime-wasi (crates.io): from 37.0.0, fixed in 48.0.10
- wasmtime-wasi (crates.io): from 49.0.0, fixed in 49.0.7
- wasmtime-wasi (crates.io): from 50.0.0, fixed in 50.0.3

## Description

### Summary

Wasmtime's filesystem implementation in the `wasmtime-wasi` crate had a bug on Windows that let guests escape their filesystem sandbox and read and write files and directories outside of it. Any guest given access to a directory can reach any file or directory the host process can access, on any drive. With write access, the guest can read, create, overwrite, and delete files outside the sandbox. With read-only access, it can read any file the host process can read. This bug is a full filesystem sandbox escape for guests.

### Details

Wasmtime's sandboxed path resolution splits a guest's path into components and then hands each one to the OS layer as a standalone path. The path `./C:foo` from a guest was parsed at this layer as a normal component with the name `C:foo`, but the next layer of Wasmtime's implementation treated this as a drive-relative path `C:foo`. This different interpretation in the meaning of the path meant the operation went to the host filesystem through ambient APIs instead of relative to the sandboxed directory. Paths containing such components could reach the escape directly, through any WASI filesystem function that takes a path (WASIp1 `path_open`, WASIp2/WASIp3 `open-at`, and the related stat, create, remove, rename, and link functions), or indirectly, through the target of a symlink inside the sandbox.

This bug only affects Wasmtime running on Windows hosts. Other platforms do not have drive prefixes and are not affected. 

### Impact

Guests on Windows are able to read or write any path on the filesystem through this vulnerability. Guests need be given any preopened directory, and through that all contents of the filesystem could be read or written. If guests were only given read-only access then the filesystem could only be read, not written.

## References

- https://github.com/bytecodealliance/wasmtime/security/advisories/GHSA-f2pq-268w-886c

Page: https://cve.now/GHSA-F2PQ-268W-886C

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
