CVE-2026-27572
JSON

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 packageVersionsReported 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.4CVE 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.4GitHub Advisory Database, RustSec Advisory Database

All scores

GitHub_M6.9medium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:H
GitHubmedium CVSS:4.0CVSS: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 DatabaseNot scored CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:H
NVD7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Classification

CWE-770

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-264hthird-party-advisory, web
https://github.com/bytecodealliance/wasmtime/commit/301dc7162cca51def19131019af1187f45901c0apatch, web
https://docs.rs/http/1.4.0/http/header/#limitationsnot-applicable, web
https://github.com/bytecodealliance/wasmtime/releases/tag/v24.0.6product, release-notes, web
https://github.com/bytecodealliance/wasmtime/releases/tag/v36.0.6product, release-notes, web
https://github.com/bytecodealliance/wasmtime/releases/tag/v40.0.4product, release-notes, web
https://github.com/bytecodealliance/wasmtime/releases/tag/v41.0.4product, release-notes, web
https://nvd.nist.gov/vuln/detail/CVE-2026-27572advisory
https://github.com/bytecodealliance/wasmtimepackage
https://rustsec.org/advisories/RUSTSEC-2026-0021.htmladvisory, web
https://crates.io/crates/wasmtimepackage

Sources

SourceRecordLicence
CVE ListCVE-2026-27572 changed 2026-02-27CVE Terms of Use
GitHub Advisory DatabaseGHSA-243v-98vx-264h changed 2026-09-10CC-BY-4.0
RustSec Advisory DatabaseRUSTSEC-2026-0021 changed 2026-10-12CC0-1.0
NVDCVE-2026-27572 changed 2026-06-17Public domain