{"id":"CVE-2026-27572","published":"2026-02-24T21:31:50Z","modified":"2026-02-27T20:55:29Z","title":"Wasmtime can panic when adding excessive fields to a `wasi:http/types.fields` instance","vendor":"bytecodealliance","product":"wasmtime","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.9,"severity":"MEDIUM","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0079,"percentile":0.52838,"provenance":"source"},"cwes":[{"id":"CWE-770","name":"Allocation of Resources Without Limits or Throttling"}],"references":[{"url":"https://github.com/bytecodealliance/wasmtime/security/advisories/GHSA-243v-98vx-264h","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/bytecodealliance/wasmtime/commit/301dc7162cca51def19131019af1187f45901c0a","tags":["x_refsource_MISC"]},{"url":"https://docs.rs/http/1.4.0/http/header/#limitations","tags":["x_refsource_MISC"]},{"url":"https://github.com/bytecodealliance/wasmtime/releases/tag/v24.0.6","tags":["x_refsource_MISC"]},{"url":"https://github.com/bytecodealliance/wasmtime/releases/tag/v36.0.6","tags":["x_refsource_MISC"]},{"url":"https://github.com/bytecodealliance/wasmtime/releases/tag/v40.0.4","tags":["x_refsource_MISC"]},{"url":"https://github.com/bytecodealliance/wasmtime/releases/tag/v41.0.4","tags":["x_refsource_MISC"]}],"priority":{"score":15.4,"factors":[{"name":"EPSS percentile","points":10.57},{"name":"CVSS severity","points":4.83}]},"vendorSlug":"bytecodealliance","affectedVersions":[{"vendor":"bytecodealliance","product":"wasmtime","versions":["< 24.0.6",">= 25.0.0, < 36.0.6",">= 37.0.0, < 40.0.4",">= 41.0.0, < 41.0.4"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-02-27T20:55:20.616278Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"crates.io","package":"wasmtime","vulnerableRanges":["<24.0.6",">=25.0.0, <36.0.6",">=37.0.0, <40.0.4",">=0.0.0-0, <24.0.6",">=41.0.0, <41.0.4"],"patched":["24.0.6","36.0.6","40.0.4","41.0.4"],"from":["GHSA-243v-98vx-264h","RUSTSEC-2026-0021"],"provenance":"source"}],"summary":{"text":"Wasmtime's wasi:http/types.fields resource, implemented in the wasmtime-wasi-http crate, can panic when too many fields are added to a set of headers, because its backing data structure panics at excessive capacity and Wasmtime does not handle that condition gracefully. An attacker who can get a guest WebAssembly module to add an excessive number of header fields, which requires network access, low privileges, and user interaction, can crash the embedding host and cause a denial of service.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:39:45Z"},"euvd":{"id":"EUVD-2026-8569","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-bytecodealliance-wasmtime-cve-2022-39392","parents":[{"from":"CVE-2022-39393","to":"CVE-2026-27572","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["crates/cli-flags/src/lib.rs"],"commits":["https://github.com/bytecodealliance/wasmtime/commit/2614f2e9d2d36805ead8a8da0fa0c6e0d9e428a0","https://github.com/bytecodealliance/wasmtime/commit/3535acbf3be032ef1ba0b469b8ab92538a8a18a6","https://github.com/bytecodealliance/wasmtime/commit/301dc7162cca51def19131019af1187f45901c0a"],"basis":"rarely changed file"}]},{"from":"CVE-2026-27195","to":"CVE-2026-27572","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["crates/cli-flags/src/lib.rs","crates/test-programs/artifacts/build.rs","crates/test-programs/src/bin/p1_cli_hostcall_fuel.rs","crates/test-programs/src/bin/p1_sleep_quickly_but_lots.rs","crates/test-programs/src/bin/p2_api_proxy.rs"],"commits":["https://github.com/bytecodealliance/wasmtime/commit/9e51c0d9a240a9613d279c061f82286bd11383fd","https://github.com/bytecodealliance/wasmtime/commit/d86b00736b9ece60b3c81e52f7a7e4cdd9f7d895","https://github.com/bytecodealliance/wasmtime/commit/301dc7162cca51def19131019af1187f45901c0a"],"basis":"shared function","functions":["Artifacts","AsyncReadStream","Default","FileInputStream","HasData"]}]}],"children":[{"from":"CVE-2026-27572","to":"CVE-2026-115889","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["crates/wasi-http/src/types_impl.rs"],"commits":["https://github.com/bytecodealliance/wasmtime/commit/ba8f7d70caa1825b7f64fa75cd9d03f4a438dae0","https://github.com/bytecodealliance/wasmtime/commit/f517bd6e890c7c1291ab9fe05d8cc0c9f11e56aa","https://github.com/bytecodealliance/wasmtime/commit/301dc7162cca51def19131019af1187f45901c0a"],"basis":"rarely changed file"}]},{"from":"CVE-2026-27572","to":"CVE-2026-54786","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["crates/wasi/src/p0.rs","crates/wasi/src/p1.rs"],"commits":["https://github.com/bytecodealliance/wasmtime/commit/301dc7162cca51def19131019af1187f45901c0a","https://github.com/bytecodealliance/wasmtime/commit/100bfe27253d2ce5154ddddf66d06e30f3fa6824","https://github.com/bytecodealliance/wasmtime/commit/36b305d827149ac0336ddcbc0a378c303339d195"],"basis":"shared function","functions":["wasi_snapshot_preview1"]}]},{"from":"CVE-2026-27572","to":"CVE-2026-58494","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["crates/wasi/src/p2/host/filesystem.rs"],"commits":["https://github.com/bytecodealliance/wasmtime/commit/301dc7162cca51def19131019af1187f45901c0a","https://github.com/bytecodealliance/wasmtime/commit/5ddfd5f1ef28f2041fa07d237ad0336e167b0e0c","https://github.com/bytecodealliance/wasmtime/commit/7db94cdcf0c79cb3dfde884b534b653f2dd83367"],"basis":"shared function","functions":["HostDescriptor"]}]}],"packageHistory":[{"cve":"CVE-2026-24116","published":"2026-01-27","fixed":"41.0.1","kev":false,"link":{"from":"CVE-2026-24116","to":"CVE-2026-27572","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"crates.io:wasmtime","fromFixed":"36.0.5","toFixed":"36.0.6","daysApart":28},{"kind":"version-step","provenance":"source","package":"crates.io:wasmtime","fromFixed":"40.0.3","toFixed":"40.0.4","daysApart":28}]}},{"cve":"CVE-2026-27195","published":"2026-02-24","fixed":"41.0.4","kev":false},{"cve":"CVE-2026-27204","published":"2026-02-24","fixed":"41.0.4","kev":false},{"cve":"CVE-2026-27572","published":"2026-02-24","fixed":"41.0.4","kev":false},{"cve":"CVE-2026-115889","published":"2026-10-23","fixed":"43.0.0","kev":false},{"cve":"CVE-2026-34941","published":"2026-04-09","fixed":"43.0.1","kev":false},{"cve":"CVE-2026-34942","published":"2026-04-09","fixed":"43.0.1","kev":false}],"package":"crates.io:wasmtime"}}