Track vulnerabilities like this one. Sign up free to get alerted when software you use is affected.
7.8

Wasmtime may crash or expose memory when converting strings

published 3 months ago
Summary

Wasmtime, the engine that runs WebAssembly code, can mishandle the conversion of certain text formats, causing it to read past the memory that belongs to a program. In the default safe setup this makes the engine crash, stopping the service; if the engine is configured without extra memory protection, it could unintentionally reveal data from the host system. Update to the latest Wasmtime release and keep the default memory‑protection settings enabled to prevent these problems.

What to do
  • Update juliabinarywrappers wasmtime_jll to version 45.0.1+0.
Affected software
Ecosystem VendorProductAffected versions
Julia juliabinarywrappers wasmtime_jll < 45.0.1+0
Fix: upgrade to 45.0.1+0
Original advisory text
Wasmtime: Heap OOB read in component model UTF-16 to latin1+utf16 string transcoding
### Summary

Wasmtime contains a vulnerability where when transcoding a UTF-16 string to the latin1+utf16 component-model encoding it would incorrectly validate the byte length of the input string when performing a bounds check. Specifically the number of code units were checked instead of the byte length, which is twice the size of the code units.

This vulnerability can cause the host to read beyond the end of a WebAssembly's linear memory in an attempt to transcode nonexistent bytes. In Wasmtime's default configuration this will read unmapped memory on a guard page, terminating the process with a segfault. Wasmtime can be configured, however, without guard pages which would mean that host memory beyond the end of linear memory may be read and interpreted as UTF-16.

A host segfault is a denial-of-service vulnerability in Wasmtime, and possibly being able to read beyond the end of linear memory is additionally a vulnerability. Note that reading beyond the end of linear memory requires nonstandard configuration of Wasmtime, specifically with guard pages disabled.

### Impact

This is an out-of-bounds memory access. Any user running untrusted wasm components that use cross-component string passing (with UTF-16 source and latin1+utf16 destination encodings) is affected.

- With guard pages: Denial of service. The host process crashes with SIGBUS/SIGSEGV.
- Without guard pages: Potential information disclosure. The guest can read host memory beyond its linear memory allocation.

Patches

Wasmtime 24.0.7, 36.0.7, 42.0.2, and 43.0.1 have been issued to fix this bug. Users are recommended to update to these patched versions of Wasmtime.
Workarounds

There is no workaround for this bug. Hosts are recommended to updated to a patched version of Wasmtime.
Fix within
Internet-facing 60 days
Internal At next upgrade
  • Not known to be exploited
  • Needs hands-on effort to exploit (estimated)
  • Gives an attacker partial control (estimated)
Severity
7.8 High
Timeline
Published21 Aug 2026
Updated21 Aug 2026
First seen21 Aug 2026
Sources
Track software like this
Free during beta