Intel

AIKIDO-2026-519880

wasmtime is vulnerable to Path Traversal

Path TraversalGHSA-vqjp-4c8c-hfgg Published 3 days ago

88

High Risk

This Affects:

RUSTwasmtime
0.0.1 - 24.0.12
Fixed in 24.0.13
25.0.0 - 36.0.13
Fixed in 36.0.14
37.0.0 - 46.0.2
Fixed in 46.0.3
47.0.0 - 47.0.3
Fixed in 47.0.4
Are you affected? Scan for Free

TL;DR

The filesystem sandbox resolves guest paths and symlinks incorrectly when they contain trailing slashes, letting the resolution escape the preopened directory. A guest with filesystem access can read and write files and directories outside its sandbox, up to what the host process itself can reach. Exposure is on macOS, Windows, and Linux where openat2 RESOLVE_BENEATH is unavailable (kernel older than 5.6, or openat2 blocked). The fix corrects trailing-slash path resolution so sandboxed lookups stay confined to the granted directory.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you grant guest code filesystem access on macOS, Windows, or Linux where openat2 RESOLVE_BENEATH is unavailable (kernel older than 5.6, or openat2 blocked).

Background info

wasmtime is vulnerable to Path Traversal in versions 0.0.1 - 24.0.12, 25.0.0 - 36.0.13, 37.0.0 - 46.0.2 and 47.0.0 - 47.0.3.

How to fix this

Upgrade the wasmtime library to the patch version.