CVE-2026-115386: Wasmtime before 36.0.17, 37.0.0 before 48.0.4, and 49.0.0 before 49.0.2 Memory Disclosure via fd_readdir

Published Oct 22, 2026
·
Updated

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

7 affected componentsFixes available
Bytecode Alliance Wasmtime<36.0.17, >=37.0.0<48.0.4, >=49.0.0<49.0.2
ubuntu/rust-wasmtime*
ubuntu/rust-wasmtime*
ubuntu/rust-wasmtime*
debian/rust-wasmtime*
debian/rust-wasmtime<36.0.20+dfsg-1
36.0.20+dfsg-1
debian/rust-wasmtime<=26.0.1+dfsg-3
36.0.20+dfsg-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/rust-wasmtime to a version that resolves this vulnerability.

    Fixed in 36.0.20+dfsg-1

Event History

Oct 22, 2026
CVE Published
via Ubuntu·12:00 AM
Data Sourced
via Ubuntu·12:00 AM
RemedyDescriptionSeverityAffected Software
CVE Published
via MITRE·07:13 PM
Data Sourced
via MITRE·07:13 PM
DescriptionSeverityWeakness
Data Sourced
via OSV·07:17 PM
DescriptionSeverityAffected Software
Data Sourced
via NVD·07:17 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which deployments are exposed?

Wasmtime deployments are exposed when they run an affected version and provide a WebAssembly guest with a preopened directory. The affected WASI Preview 1 fd_readdir path can disclose data when that guest lists directory entries.

2

What does an attacker need to exploit this?

An attacker needs to control or execute a guest that can call fd_readdir and has access to a preopened directory. Exploitation also requires successfully listing entries in that directory.

3

How much data can be disclosed?

The guest can receive three bytes of leftover host stack or heap memory for each directory entry returned by fd_readdir. The disclosed bytes are uninitialized struct padding.

4

Which versions should be remediated?

Upgrade to Wasmtime 36.0.17, 48.0.4, or 49.0.2 or later, as applicable to the release line in use. Versions before 36.0.17, versions from 37.0.0 before 48.0.4, and versions from 49.0.0 before 49.0.2 are affected.

5

What can be done if an upgrade is not immediately possible?

Do not grant untrusted guests preopened directories, or prevent them from listing entries in such directories. This removes the fd_readdir access condition described for the disclosure.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203