Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. wasmtime
  4. ›
  5. CVE-2026-34942

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

April 9, 2026 (updated April 24, 2026)

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.

References

  • github.com/advisories/GHSA-jxhv-7h78-9775
  • github.com/bytecodealliance/wasmtime/security/advisories/GHSA-jxhv-7h78-9775
  • nvd.nist.gov/vuln/detail/CVE-2026-34942
  • rustsec.org/advisories/RUSTSEC-2026-0092.html

Code Behaviors & Features

Detect and mitigate CVE-2026-34942 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 24.0.7, all versions starting from 25.0.0 before 36.0.7, all versions starting from 37.0.0 before 42.0.2, all versions starting from 43.0.0 before 43.0.1

Fixed versions

  • 24.0.7
  • 36.0.7
  • 42.0.2
  • 43.0.1

Solution

Upgrade to versions 24.0.7, 36.0.7, 42.0.2, 43.0.1 or above.

Impact 6.5 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-119: Improper Restriction of Operations within the Bounds of a Memory Buffer
  • CWE-129: Improper Validation of Array Index

Source file

cargo/wasmtime/CVE-2026-34942.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 19 May 2026 12:21:56 +0000.