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

CVE-2026-35195: Wasmtime has out-of-bounds write or crash when transcoding component model strings

April 9, 2026

Wasmtime’s implementation of transcoding strings between components contains a bug where the return value of a guest component’s realloc is not validated before the host attempts to write through the pointer. This enables a guest to cause the host to write arbitrary transcoded string bytes to an arbitrary location up to 4GiB away from the base of linear memory. These writes on the host could hit unmapped memory or could corrupt host data structures depending on Wasmtime’s configuration.

Wasmtime by default reserves 4GiB of virtual memory for a guest’s linear memory meaning that this bug will by default on hosts cause the host to hit unmapped memory and abort the process due to an unhandled fault. Wasmtime can be configured, however, to reserve less memory for a guest and to remove all guard pages, so some configurations of Wasmtime may lead to corruption of data outside of a guest’s linear memory, such as host data structures or other guests’s linear memories.

References

  • github.com/advisories/GHSA-394w-hwhg-8vgm
  • github.com/bytecodealliance/wasmtime
  • github.com/bytecodealliance/wasmtime/security/advisories/GHSA-394w-hwhg-8vgm
  • nvd.nist.gov/vuln/detail/CVE-2026-35195

Code Behaviors & Features

Detect and mitigate CVE-2026-35195 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, version 43.0.0

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 7.6 HIGH

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

Learn more about CVSS

Weakness

  • CWE-787: Out-of-bounds Write

Source file

cargo/wasmtime/CVE-2026-35195.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Fri, 10 Apr 2026 12:19:47 +0000.