Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-35195: CWE-787: Out-of-bounds Write in bytecodealliance wasmtime

0
Medium
VulnerabilityCVE-2026-35195cvecve-2026-35195cwe-787
Published: Thu Apr 09 2026 (04/09/2026, 18:55:56 UTC)
Source: CVE Database V5
Vendor/Project: bytecodealliance
Product: wasmtime

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 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. This vulnerability is fixed in 24.0.7, 36.0.7, 42.0.2, and 43.0.1.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 04/17/2026, 12:01:34 UTC

Technical Analysis

Wasmtime's implementation of string transcoding between components contains a bug where the return value of a guest component's realloc is not validated before the host writes through the pointer. This enables a guest to cause out-of-bounds writes up to 4GiB away from the guest's linear memory base. By default, Wasmtime reserves 4GiB of virtual memory, so the host typically aborts due to unhandled faults when hitting unmapped memory. However, configurations with less reserved memory and no guard pages may allow corruption of host data structures or other guests' memory. The issue affects Wasmtime versions prior to 24.0.7, 36.0.7, 42.0.2, and 43.0.1, where it has been fixed.

Potential Impact

This vulnerability can cause the host process running Wasmtime to abort due to unhandled memory faults when the host writes to unmapped memory. In some configurations, it may lead to corruption of host data structures or other guests' linear memories, potentially impacting host stability and security. There are no known exploits in the wild as of the published date.

Mitigation Recommendations

This vulnerability is fixed in Wasmtime versions 24.0.7, 36.0.7, 42.0.2, and 43.0.1. Users should upgrade to one of these fixed versions or later to remediate the issue. Patch status is not explicitly stated beyond these fixed versions, so users should consult the vendor advisory for the latest remediation guidance. No other mitigations are specified.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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/17/2026, 12:01:34 PM

Last updated: 5/25/2026, 2:43:32 AM

Views: 71

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses