Wasmtime
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 Sandbox Escape via Trailing Slashes
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.
First public PoC
None yetno public PoC found
Public PoCs00 on GitHub
CVSS8.8high · scored by CNA · CWE-61
CISA KEV
Not listednot known exploited
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
bytecodealliance wasmtime
- < 24.0.13
- >= 25.0.0, < 36.0.14
- >= 37.0.0, < 46.0.3
- >= 47.0.0, < 47.0.4
Fixed in 24.0.13, 36.0.14, 46.0.3, 47.0.4
Mitigation
Upgrade wasmtime to 24.0.13 or 36.0.14 or 46.0.3 or 47.0.4 or later.
References
- Vendor advisory github.com/bytecodealliance/wasmtime/security/…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.