Memory Allocation with Excessive Size Value Affecting wasmtime package, versions <24.0.6>=25.0.0 <36.0.6>=37.0.0 <40.0.4>=41.0.0 <41.0.4


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 Learn

Learn about Memory Allocation with Excessive Size Value vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-RUST-WASMTIME-15347836
  • published25 Feb 2026
  • disclosed24 Feb 2026
  • creditMark Bundschuh

Introduced: 24 Feb 2026

NewCVE-2026-27204  (opens in a new tab)
CWE-770  (opens in a new tab)
CWE-774  (opens in a new tab)
CWE-789  (opens in a new tab)

How to fix?

Upgrade wasmtime to version 24.0.6, 36.0.6, 40.0.4, 41.0.4 or higher.

Overview

Affected versions of this package are vulnerable to Memory Allocation with Excessive Size Value through insufficient limits on resource allocations requested by guests. An attacker can exhaust host resources, potentially causing process crashes, panics, or degraded performance by repeatedly allocating excessive memory or handles, or by forcing the host to buffer or copy arbitrarily large amounts of data.

CVSS Base Scores

version 4.0
version 3.1