CVE-2026-27204
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.
Description as published by the source, in English.
Key facts
- Published
- 2026-02-24
- Last modified
- 2026-06-17
- Assigned by
- security-advisories@github.com
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H- Scored by
- nvd@nist.gov (NVD Primary)
- Probability of exploitation
-
0.3 %
higher than 27 %
of all known vulnerabilities
EPSS, next 30 days, model v2026.06.15 - Fix available
- Not registered in the sources
Affected products
| Vendor | Product | Versions | Status |
|---|---|---|---|
| wasmtime (crates.io) | < 24.0.6 | Affected | |
| wasmtime (crates.io) | ≥ 25.0.0, < 36.0.6 | Affected | |
| wasmtime (crates.io) | ≥ 37.0.0, < 40.0.4 | Affected | |
| Bytecodealliance | Wasmtime | < 24.0.6 | Affected |
| Bytecodealliance | Wasmtime | ≥ 25.0.0, < 36.0.6 | Affected |
| Bytecodealliance | Wasmtime | ≥ 37.0.0, < 40.0.4 | Affected |
| Bytecodealliance | Wasmtime | ≥ 41.0.0, < 41.0.4 | Affected |
Weakness type
-
CWE-400: Uncontrolled Resource Consumption
The product does not properly control the allocation and maintenance of a limited resource.
-
CWE-770: Allocation of Resources Without Limits or Throttling
The product allocates a reusable resource or group of resources on behalf of an actor without imposing any intended restrictions on the size or number of resources that can be allocated.
-
CWE-774: Allocation of File Descriptors or Handles Without Limits or Throttling
The product allocates file descriptors or handles on behalf of an actor without imposing any restrictions on how many descriptors can be allocated, in violation of the intended security policy for that actor.
-
CWE-789: Memory Allocation with Excessive Size Value
The product allocates memory based on an untrusted, large size value, but it does not ensure that the size is within expected limits, allowing arbitrary amounts of memory to be allocated.
Attack techniques
Derived through the weakness type: CVE to CWE to CAPEC to ATT&CK. This shows which techniques the weakness class is historically used for. It does not assert that this vulnerability has been exploited that way.
- T1498.001: Direct Network Flood
- T1498.002: Reflection Amplification
- T1499: Endpoint Denial of Service
- T1499.001: OS Exhaustion Flood
- T1499.002: Service Exhaustion Flood
- T1499.003: Application Exhaustion Flood
References
- https://docs.rs/wasmtime-wasi/latest/wasmtime_wasi/struct.WasiCtxBuilder.html#method.max_…
- https://docs.rs/wasmtime/latest/wasmtime/component/struct.ResourceTable.html#method.set_m…
- https://docs.rs/wasmtime/latest/wasmtime/struct.Store.html#method.set_hostcall_fuel
- https://docs.wasmtime.dev/security-what-is-considered-a-security-vulnerability.html
- https://github.com/bytecodealliance/wasmtime/issues/11552
- https://github.com/bytecodealliance/wasmtime/pull/12599
- https://github.com/bytecodealliance/wasmtime/security/advisories/GHSA-852m-cvvp-9p4w
Does this affect you?
A vulnerability matters only if you run the product, in an affected version, somewhere an attacker can reach.