6.9medium
Wasmtime can panic when adding excessive fields to a `wasi:http/types.fields` instance
- Severity
- 6.9medium CVSS:4.0 by GitHub_M
- Exploit likelihood
- 0.51% (higher than 45% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-243v-98vx-264hRUSTSEC-2026-0021
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 the `wasi:http/types.fields` resource is susceptible to panics when too many fields are added to the set of headers. Wasmtime's implementation in the `wasmtime-wasi-http` crate is backed by a data structure which panics when it reaches excessive capacity and this condition was not handled gracefully in Wasmtime. Panicking in a WASI implementation is a Denial of Service vector for embedders and is treated as a security vulnerability in Wasmtime. Wasmtime 24.0.6, 36.0.6, 40.0.4, 41.0.4, and 42.0.0 patch this vulnerability and return a trap to the guest instead of panicking. There are no known workarounds at this time. Embedders are encouraged to update to a patched version of Wasmtime.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| bytecodealliance wasmtime | < 24.0.6, >= 25.0.0, < 36.0.6, >= 37.0.0, < 40.0.4, >= 41.0.0, < 41.0.4, before 24.0.6, from 25.0.0 before 36.0.6, from 37.0.0 before 40.0.4, from 41.0.0 before 41.0.4 | CVE List, NVD |
| wasmtime (crates.io) | before 24.0.6, from 25.0.0 before 36.0.6, from 37.0.0 before 40.0.4, from 0.0.0-0 before 24.0.6, from 41.0.0 before 41.0.4 | GitHub Advisory Database, RustSec Advisory Database |
All scores
| GitHub_M | 6.9medium CVSS:4.0 | 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 |
| GitHub | medium CVSS:4.0 | 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 |
| RustSec Advisory Database | Not scored CVSS:4.0 | 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 |
| NVD | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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 the `wasi:http/types.fields` resource is susceptible to panics when too many fields are added to the set of headers. Wasmtime's implementation in the `wasmtime-wasi-http` crate is backed by a data structure which panics when it reaches excessive capacity and this condition was not handled gracefully in Wasmtime. Panicking in a WASI implementation is a Denial of Service vector for embedders and is treated as a security vulnerability in Wasmtime. Wasmtime 24.0.6, 36.0.6, 40.0.4, 41.0.4, and 42.0.0 patch this vulnerability and return a trap to the guest instead of panicking. There are no known workarounds at this time. Embedders are encouraged to update to a patched version of Wasmtime.
GitHub Advisory Database
Impact
Wasmtime's implementation of the wasi:http/types.fields resource is susceptible to panics when too many fields are added to the set of headers. Wasmtime's implementation in the wasmtime-wasi-http crate is backed by a data structure which panics when it reaches excessive capacity and this condition was not handled gracefully in Wasmtime. Panicking in a WASI implementation is a Denial of Service vector for embedders and is treated as a security vulnerability in Wasmtime.
Patches
Wasmtime 24.0.6, 36.0.6, 40.0.4, 41.0.4, and 42.0.0 patch this vulnerability and return a trap to the guest instead of panicking.
Workarounds
There are no known workarounds at this time, embedders are encouraged to update to a patched version of Wasmtime.
Resources
RustSec Advisory Database
This is an entry in the RustSec database for the Wasmtime security advisory located at https://github.com/bytecodealliance/wasmtime/security/advisories/GHSA-243v-98vx-264h For more information see the GitHub-hosted security advisory.
NVD (es)
Wasmtime es un entorno de ejecución para WebAssembly. Antes de las versiones 24.0.6, 36.0.6, 4.0.04, 41.0.4 y 42.0.0, la implementación de Wasmtime del recurso `wasi:http/types.fields` es susceptible a panics cuando se añaden demasiados campos al conjunto de cabeceras. La implementación de Wasmtime en el crate `wasmtime-wasi-http` está respaldada por una estructura de datos que entra en pánico cuando alcanza una capacidad excesiva. Esta condición no se manejó convenientemente en Wasmtime. Entrar en pánico en una implementación de WASI es un vector de denegación de servicio para los integradores y se trata como una vulnerabilidad de seguridad en Wasmtime. Wasmtime 24.0.6, 36.0.6, 40.0.4, 41.0.4 y 42.0.0 aplican un parche a esta vulnerabilidad y devuelven una trampa al invitado en lugar de entrar en pánico. No hay soluciones alternativas conocidas en este momento. Se anima a los integradores a actualizar a una versión de Wasmtime con parche.
References
| https://github.com/bytecodealliance/wasmtime/security/advisories/GHSA-243v-98vx-264h | third-party-advisory, web | |
| https://github.com/bytecodealliance/wasmtime/commit/301dc7162cca51def19131019af1187f45901c0a | patch, web | |
| https://docs.rs/http/1.4.0/http/header/#limitations | not-applicable, web | |
| https://github.com/bytecodealliance/wasmtime/releases/tag/v24.0.6 | product, release-notes, web | |
| https://github.com/bytecodealliance/wasmtime/releases/tag/v36.0.6 | product, release-notes, web | |
| https://github.com/bytecodealliance/wasmtime/releases/tag/v40.0.4 | product, release-notes, web | |
| https://github.com/bytecodealliance/wasmtime/releases/tag/v41.0.4 | product, release-notes, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2026-27572 | advisory | |
| https://github.com/bytecodealliance/wasmtime | package | |
| https://rustsec.org/advisories/RUSTSEC-2026-0021.html | advisory, web | |
| https://crates.io/crates/wasmtime | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-27572 changed 2026-02-27 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-243v-98vx-264h changed 2026-09-10 | CC-BY-4.0 |
| RustSec Advisory Database | RUSTSEC-2026-0021 changed 2026-10-12 | CC0-1.0 |
| NVD | CVE-2026-27572 changed 2026-06-17 | Public domain |