CVE-2026-140415: wasmtime-wasi-http: Empty Body Writes can result in Unbound Heap Usage with HTTP/2
This is an entry in the RustSec database for the Wasmtime security advisory located at https://github.com/bytecodealliance/wasmtime/security/advisories/GHSA-f8mm-ggr3-89wh For more information see the GitHub-hosted security advisory.
Other sources
wasmtime-wasi-http in Wasmtime before 36.0.21, 37.0.0 before 48.0.9, 49.0.0 before 49.0.6, and 50.0.0 before 50.0.2 does not reject zero-length writes to outgoing HTTP/2 bodies sent via hyper, and these empty DATA frames bypass flow-control and send-buffer limits. A malicious wasi-http guest paired with a slow or stalled peer can issue many empty writes to exhaust host memory.
— MITRE
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
rust/wasmtimeto a version that resolves this vulnerability.Fixed in 36.0.21 - Upgrade
Upgrade
rust/wasmtimeto a version that resolves this vulnerability.Fixed in 48.0.9 - Upgrade
Upgrade
rust/wasmtimeto a version that resolves this vulnerability.Fixed in 49.0.6 - Upgrade
Upgrade
rust/wasmtimeto a version that resolves this vulnerability.Fixed in 50.0.2
Event History
Frequently Asked Questions
What conditions are required for exploitation?
An attacker needs to control or run a malicious wasi-http guest that can make outgoing HTTP/2 requests through hyper. Exploitation also requires a slow or stalled remote peer, allowing repeated zero-length body writes to accumulate host memory usage.
Which deployments are exposed?
Deployments using the wasmtime-wasi-http crate with affected Wasmtime releases are exposed when they permit untrusted or malicious guests to issue outgoing HTTP/2 requests. The issue concerns zero-length writes to outgoing HTTP/2 bodies.
Which versions should be remediated?
Upgrade to Wasmtime 36.0.21, 48.0.9, 49.0.6, or 50.0.2, as applicable to the release line in use. Affected ranges are releases before 36.0.21, 37.0.0 through before 48.0.9, 49.0.0 through before 49.0.6, and 50.0.0 through before 50.0.2.