# GHSA-C9GC-W9VX-W86P: wasmtime-wasi-http: outgoing HTTP body write allows guest-driven host memory exhaustion (DoS)

- Database: GitHub
- Severity: CVSS 6.2 (Medium)
- Published: 2026-09-24
- Modified: 2026-10-23

## Tracked as

- [CVE-2026-115388](https://cve.now/CVE-2026-115388.md): Wasmtime before 36.0.16, 37.0.0 before 48.0.3, and 49.0.0 before 49.0.1 Memory Exhaustion DoS via wasmtime-wasi-http Outgoing Body Write

## Affected versions

- wasmtime-wasi-http (crates.io): fixed in 36.0.16
- wasmtime-wasi-http (crates.io): from 37.0.0, fixed in 48.0.3
- wasmtime-wasi-http (crates.io): 49.0.0

## Description

## Impact

`wasmtime-wasi-http` does not enforce the write allowance that `wasi:io/streams.check-write` returns for WASIp2 outgoing HTTP bodies.

A guest can call `check-write`, get the default configured `DEFAULT_OUTGOING_BODY_CHUNK_SIZE` of 1M (or whatever value the chunk size has been customized to in an embedder's own `WasiHttpHooks` impl), and then hand a much larger buffer to `write`. The `write` call will succeed for sizes larger than permitted by `check-write`, disobeying the spec's [`wasi:io/streams`, `write` precondition](https://github.com/WebAssembly/wasi-io/blob/main/wit/streams.wit) which says such a `write` must trap. Due to this behavior, each `outgoing-body` resource created by the guest (trivial by way of creating an `outgoing-request` or `outgoing-response`) can be used to hold a host allocation of at least one linear memory sized vector for the lifetime of the guest's store.

## Patches

The fix for this issue is present the wasmtime project's `main` branch, as well as in the following patch releases:
* 36.0.16
* 48.0.3
* 49.0.1

## References

- https://github.com/bytecodealliance/wasmtime/security/advisories/GHSA-c9gc-w9vx-w86p

Page: https://cve.now/GHSA-C9GC-W9VX-W86P

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
