JLSEC-2026-2437: Wasmtime before 36.0.17, 37.0.0 before 48.0.4, and 49.0.0 before 49.0.2 contains an information...
Wasmtime before 36.0.17, 37.0.0 before 48.0.4, and 49.0.0 before 49.0.2 contains an information disclosure vulnerability in the WASIp1 fdreaddir implementation that copies uninitialized struct padding into guest memory. Guests with a preopened directory can list entries to receive three bytes of leftover host stack or heap memory per directory entry.
Affected Software
Event History
Child vulnerabilities
Contains the following vulnerabilities.
Frequently Asked Questions
Which deployments are exposed to this disclosure?
Exposure requires a Wasmtime guest to have access to a preopened directory. A guest that can list that directory can receive three bytes of leftover host stack or heap memory for each directory entry returned.
What must an attacker be able to do to exploit it?
The attacker needs the ability to run or control a WASI Preview 1 guest with a preopened directory and cause it to enumerate directory entries through fd_readdir. The issue does not describe disclosure without that directory access.
Which Wasmtime versions are affected?
Affected versions are releases before 36.0.17, versions from 37.0.0 through before 48.0.4, and versions from 49.0.0 through before 49.0.2.