CVE-2026-27204

Wasmtime WASI implementations are vulnerable to guest-controlled resource exhaustion

Published Feb 24, 2026 CVSS 4.0 · 6.9 Medium EPSS < 1% KEV · Not listed
Description
Wasmtime is a runtime for WebAssembly. Prior to versions 24.0.6, 36.0.6, 4.0.04, 41.0.4, and 42.0.0, Wasmtime's implementation of WASI host interfaces are susceptible to guest-controlled resource exhaustion on the host. Wasmtime did not appropriately place limits on resource allocations requested by the guests. This serves as a Denial of Service vector. Wasmtime 24.0.6, 36.0.6, 40.0.4, 41.0.4, and 42.0.0 have all been released with the fix for this issue. These versions do not prevent this issue in their default configuration to avoid breaking preexisting behaviors. All versions of Wasmtime have appropriate knobs to prevent this behavior, and Wasmtime 42.0.0-and-later will have these knobs tuned by default to prevent this issue from happening. There are no known workarounds for this issue without upgrading. Embedders are recommended to upgrade and configure their embeddings as necessary to prevent possibly-malicious guests from triggering this issue.

Analysis

AI-generated

Technical impact

Wasmtime, a WebAssembly runtime, contains a flaw in its WASI host interface implementations that allows a malicious WebAssembly module to request an excessive amount of resources from the host. The runtime fails to enforce limits on allocations such as memory or other host resources, enabling resource exhaustion. Consequently an attacker can drain host CPU, memory, or other system resources, leading to denial of service. The weakness is reflected by improper resource handling and control, reflected by CWEs 400, 770, 774, and 789.

Affected Systems

Bytecodealliance Wasmtime versions earlier than 24.0.6, 36.0.6, 40.0.4, 41.0.4, and 42.0.0 are vulnerable. The flaw is present in all builds before those releases; newer releases contain a fix but each embedder must enable the protective knobs to prevent exploitation. All versions of Wasmtime provide adjustable limits that must be configured to stop a malicious guest from exhausting resources.

Risk and Exploitability

The CVSS score of 6.9 indicates a moderate severity level, and the EPSS score of less than 1% suggests a very low but non‑zero probability of exploitation. The vulnerability is not listed in the CISA KEV catalog. Attackers can exploit it from the guest side by submitting specially crafted WebAssembly modules that request excessive resources. Because the runtime does not impose limits by default, an untrusted guest can drive the host toward depletion of CPU or memory, interrupting services. The primary risk is denial of service to the host and any services that rely on Wasmtime.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Wasmtime to version 24.0.6 or any later release that contains the patch.
  • Enable the resource‑limit knobs provided in newer releases—for example, configure WasiCtxBuilder.max_random_size, ResourceTable.set_max_capacity, or store.set_hostcall_fuel—to enforce upper bounds on requested resources.
  • Verify that the host configuration applies these limits before exposing untrusted WebAssembly modules.

Generated by OpenCVE AI on April 16, 2026 at 16:20 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-852m-cvvp-9p4w Wasmtime WASI implementations are vulnerable to guest-controlled resource exhaustion
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
CPEs cpe:2.3:a:bytecodealliance:wasmtime:*:*:*:*:*:rust:*:*
Metrics cvssV3_1

{'score': 6.3, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:N/I:N/A:H'}

cvssV3_1

{'score': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}

Type Values Removed Values Added
References
Metrics threat_severity

None

cvssV3_1

{'score': 6.3, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:N/I:N/A:H'}

threat_severity

Moderate

Type Values Removed Values Added
First Time appeared Bytecodealliance
Bytecodealliance wasmtime
Vendors & Products Bytecodealliance
Bytecodealliance wasmtime
Type Values Removed Values Added
Description Wasmtime is a runtime for WebAssembly. Prior to versions 24.0.6, 36.0.6, 4.0.04, 41.0.4, and 42.0.0, Wasmtime's implementation of WASI host interfaces are susceptible to guest-controlled resource exhaustion on the host. Wasmtime did not appropriately place limits on resource allocations requested by the guests. This serves as a Denial of Service vector. Wasmtime 24.0.6, 36.0.6, 40.0.4, 41.0.4, and 42.0.0 have all been released with the fix for this issue. These versions do not prevent this issue in their default configuration to avoid breaking preexisting behaviors. All versions of Wasmtime have appropriate knobs to prevent this behavior, and Wasmtime 42.0.0-and-later will have these knobs tuned by default to prevent this issue from happening. There are no known workarounds for this issue without upgrading. Embedders are recommended to upgrade and configure their embeddings as necessary to prevent possibly-malicious guests from triggering this issue.
Title Wasmtime WASI implementations are vulnerable to guest-controlled resource exhaustion
Weaknesses CWE-400
CWE-770
CWE-774
CWE-789
References
Metrics cvssV4_0

{'score': 6.9, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:H'}

Weaknesses
  • CWE-400

    Uncontrolled Resource Consumption

  • CWE-770

    Allocation of Resources Without Limits or Throttling

  • CWE-774

    Allocation of File Descriptors or Handles Without Limits or Throttling

  • CWE-789

    Memory Allocation with Excessive Size Value

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Feb 27, 2026, 8:54 PM
Reserved
Feb 18, 2026, 7:47 PM
Status
Analyzed
Published
Feb 24, 2026, 10:16 PM
Modified
Jun 17, 2026, 10:26 AM
Severity
Moderate
Public date
Feb 24, 2026, 9:23 PM