CVE-2026-34942
JSON

5.9medium

Wasmtime panics when transcoding misaligned utf-16 strings

Severity
5.9medium CVSS:4.0 by GitHub_M
Exploit likelihood
0.38% (higher than 33% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-jxhv-7h78-9775RUSTSEC-2026-0092

Description

Wasmtime is a runtime for WebAssembly. Prior to 24.0.7, 36.0.7, 42.0.2, and 43.0.1, Wasmtime's implementation of transcoding strings into the Component Model's utf16 or latin1+utf16 encodings improperly verified the alignment of reallocated strings. This meant that unaligned pointers could be passed to the host for transcoding which would trigger a host panic. This panic is possible to trigger from malicious guests which transfer very specific strings across components with specific addresses. Host panics are considered a DoS vector in Wasmtime as the panic conditions are controlled by the guest in this situation. This vulnerability is fixed in 24.0.7, 36.0.7, 42.0.2, and 43.0.1.

Affected

Product or packageVersionsReported by
bytecodealliance wasmtime< 24.0.7, >= 25.0.0, < 36.0.7, >= 37.0.0, < 42.0.2, >= 43.0.0, < 44.0.1, before 24.0.7, from 25.0.0 before 36.0.7, from 37.0.0 before 42.0.2, from 43.0.0 before 43.0.1CVE List, NVD
wasmtime (crates.io)before 24.0.7, from 25.0.0 before 36.0.7, from 37.0.0 before 42.0.2, from 43.0.0 before 43.0.1, from 0.0.0-0 before 24.0.7GitHub Advisory Database, RustSec Advisory Database

All scores

GitHub_M5.9medium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:L
GitHub6.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
GitHubmedium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:L
RustSec Advisory DatabaseNot scored CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:L
NVD6.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Classification

CWE-119CWE-129

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

Wasmtime is a runtime for WebAssembly. Prior to 24.0.7, 36.0.7, 42.0.2, and 43.0.1, Wasmtime's implementation of transcoding strings into the Component Model's utf16 or latin1+utf16 encodings improperly verified the alignment of reallocated strings. This meant that unaligned pointers could be passed to the host for transcoding which would trigger a host panic. This panic is possible to trigger from malicious guests which transfer very specific strings across components with specific addresses. Host panics are considered a DoS vector in Wasmtime as the panic conditions are controlled by the guest in this situation. This vulnerability is fixed in 24.0.7, 36.0.7, 42.0.2, and 43.0.1.

GitHub Advisory Database
Impact

Wasmtime's implementation of transcoding strings into the Component Model's utf16 or latin1+utf16 encodings improperly verified the alignment of reallocated strings. This meant that unaligned pointers could be passed to the host for transcoding which would trigger a host panic. This panic is possible to trigger from malicious guests which transfer very specific strings across components with specific addresses.

Host panics are considered a DoS vector in Wasmtime as the panic conditions are controlled by the guest in this situation.

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.

RustSec Advisory Database

This is an entry in the RustSec database for the Wasmtime security advisory located at https://github.com/bytecodealliance/wasmtime/security/advisories/GHSA-jxhv-7h78-9775 For more information see the GitHub-hosted security advisory.

NVD (es)

Wasmtime es un entorno de ejecución para WebAssembly. Antes de 24.0.7, 36.0.7, 42.0.2 y 43.0.1, la implementación de Wasmtime para la transcodificación de cadenas a las codificaciones utf16 o latin1+utf16 del Modelo de Componentes verificaba incorrectamente la alineación de las cadenas reasignadas. Esto significaba que se podían pasar punteros no alineados al host para la transcodificación, lo que desencadenaría un pánico del host. Este pánico es posible de desencadenar desde invitados maliciosos que transfieren cadenas muy específicas entre componentes con direcciones específicas. Los pánicos del host se consideran un vector de DoS en Wasmtime, ya que las condiciones de pánico son controladas por el invitado en esta situación. Esta vulnerabilidad está corregida en 24.0.7, 36.0.7, 42.0.2 y 43.0.1.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-34942 changed 2026-04-09CVE Terms of Use
GitHub Advisory DatabaseGHSA-jxhv-7h78-9775 changed 2026-09-10CC-BY-4.0
RustSec Advisory DatabaseRUSTSEC-2026-0092 changed 2026-10-12CC0-1.0
NVDCVE-2026-34942 changed 2026-10-26Public domain