Wasmtime Denial-of-Service Vulnerability in WASI HTTP Fields Handling

Vulnerability

A denial-of-service vulnerability has been identified in Wasmtime's WebAssembly runtime, specifically in versions prior to 24.0.6, 36.0.6, 40.0.4, 41.0.4, and 42.0.0. The issue arises in Wasmtime's implementation of the 'wasi:http/types.fields' resource, which can panic when an excessive number of fields are added to the headers. This behavior is not gracefully handled, leading to potential crashes in applications that embed Wasmtime.

Impact

The vulnerability causes a panic in the WASI implementation, which is treated as a denial-of-service issue for embedders, causing the application to crash.

Reproduction

The vulnerability can be reproduced by creating a 'wasi:http/types.fields' instance and adding a large number of fields to it. This can be done by using the 'wasi:http' HTTP fields functions in a Wasmtime environment that does not have the resource limits configured.

Remediation

Users are advised to update to Wasmtime versions 24.0.6, 36.0.6, 40.0.4, 41.0.4, or 42.0.0, which include the necessary fix. Embedders should also consider configuring the new resource limit options available in these versions to prevent similar issues.

Added: Feb 24, 2026, 11:20 PM
Updated: Feb 24, 2026, 11:20 PM

Vulnerability Rating

Custom Algorithm
spread
4.2
impact
2.5
exploitability
4.0
remediation
7.7
relevance
3.1
threat
4.8
urgency
2.9
incentive
0.0

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.