CVE-2026-35195: CWE-787: Out-of-bounds Write in bytecodealliance wasmtime
CVE-2026-35195 is a medium severity out-of-bounds write vulnerability in the Wasmtime runtime for WebAssembly. The issue arises from Wasmtime's string transcoding implementation where the guest component's realloc return value is not validated before the host writes data. This can cause the host to write arbitrary bytes up to 4GiB away from the guest's linear memory base, potentially leading to host process aborts or memory corruption depending on configuration. The vulnerability affects multiple Wasmtime versions prior to fixed releases 24. 0. 7, 36. 0. 7, 42. 0. 2, and 43.
AI Analysis
Technical Summary
Wasmtime, a WebAssembly runtime by bytecodealliance, contains an out-of-bounds write vulnerability (CWE-787) in its string transcoding between components. The flaw occurs because the host does not validate the guest component's realloc return pointer before writing transcoded string bytes. This allows a guest to cause the host to write data up to 4GiB away from the guest's linear memory base. By default, Wasmtime reserves 4GiB of virtual memory for guest linear memory, causing out-of-bounds writes to hit unmapped memory and abort the host process. However, configurations with less reserved memory and no guard pages may allow corruption of host data structures or other guests' memory. The vulnerability affects Wasmtime versions before 24.0.7, between 25.0.0 and 36.0.7, between 37.0.0 and 42.0.2, and between 43.0.0 and 44.0.1. Fixed versions are 24.0.7, 36.0.7, 42.0.2, and 43.0.1.
Potential Impact
Exploitation can cause the host process running Wasmtime to abort due to unhandled memory faults or, under certain configurations, lead to corruption of host data structures or other guests' linear memories. This can impact the stability and security of the host environment running Wasmtime. The CVSS 4.0 score is 6.1 (medium severity), reflecting network attack vector, low attack complexity, partial privileges required, no user interaction, and high impact on availability.
Mitigation Recommendations
Fixed versions of Wasmtime are available: 24.0.7, 36.0.7, 42.0.2, and 43.0.1. Users should upgrade to one of these versions to remediate the vulnerability. Patch status is not explicitly confirmed beyond the identification of fixed versions; therefore, users should consult the official bytecodealliance Wasmtime advisories for the latest remediation guidance. No alternative mitigations are indicated.
CVE-2026-35195: CWE-787: Out-of-bounds Write in bytecodealliance wasmtime
Description
CVE-2026-35195 is a medium severity out-of-bounds write vulnerability in the Wasmtime runtime for WebAssembly. The issue arises from Wasmtime's string transcoding implementation where the guest component's realloc return value is not validated before the host writes data. This can cause the host to write arbitrary bytes up to 4GiB away from the guest's linear memory base, potentially leading to host process aborts or memory corruption depending on configuration. The vulnerability affects multiple Wasmtime versions prior to fixed releases 24. 0. 7, 36. 0. 7, 42. 0. 2, and 43.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Wasmtime, a WebAssembly runtime by bytecodealliance, contains an out-of-bounds write vulnerability (CWE-787) in its string transcoding between components. The flaw occurs because the host does not validate the guest component's realloc return pointer before writing transcoded string bytes. This allows a guest to cause the host to write data up to 4GiB away from the guest's linear memory base. By default, Wasmtime reserves 4GiB of virtual memory for guest linear memory, causing out-of-bounds writes to hit unmapped memory and abort the host process. However, configurations with less reserved memory and no guard pages may allow corruption of host data structures or other guests' memory. The vulnerability affects Wasmtime versions before 24.0.7, between 25.0.0 and 36.0.7, between 37.0.0 and 42.0.2, and between 43.0.0 and 44.0.1. Fixed versions are 24.0.7, 36.0.7, 42.0.2, and 43.0.1.
Potential Impact
Exploitation can cause the host process running Wasmtime to abort due to unhandled memory faults or, under certain configurations, lead to corruption of host data structures or other guests' linear memories. This can impact the stability and security of the host environment running Wasmtime. The CVSS 4.0 score is 6.1 (medium severity), reflecting network attack vector, low attack complexity, partial privileges required, no user interaction, and high impact on availability.
Mitigation Recommendations
Fixed versions of Wasmtime are available: 24.0.7, 36.0.7, 42.0.2, and 43.0.1. Users should upgrade to one of these versions to remediate the vulnerability. Patch status is not explicitly confirmed beyond the identification of fixed versions; therefore, users should consult the official bytecodealliance Wasmtime advisories for the latest remediation guidance. No alternative mitigations are indicated.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-04-01T18:48:58.936Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 69d7f88e1cc7ad14da0c179f
Added to database: 4/9/2026, 7:05:50 PM
Last enriched: 4/9/2026, 7:21:19 PM
Last updated: 4/9/2026, 8:20:59 PM
Views: 5
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.