Memory Allocation with Excessive Size Value Affecting wasmtime package, versions >=25.0.0 <36.0.7>=37.0.0 <42.0.2>=43.0.0 <43.0.1


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-RUST-WASMTIME-15967400
  • published10 Apr 2026
  • disclosed9 Apr 2026
  • creditUnknown

Introduced: 9 Apr 2026

NewCVE-2026-35186  (opens in a new tab)
CWE-789  (opens in a new tab)

How to fix?

Upgrade wasmtime to version 36.0.7, 42.0.2, 43.0.1 or higher.

Overview

Affected versions of this package are vulnerable to Memory Allocation with Excessive Size Value in the handling of the table.grow operator by the Winch compiler backend, which leads to an internal type mismatch. An attacker can cause the host process to crash or potentially access up to 16 bytes of sensitive host data by triggering this flaw. This is only exploitable if memory guard pages are disabled.

CVSS Base Scores

version 4.0
version 3.1