{"id":"CVE-2026-34941","published":"2026-04-09T18:29:30Z","modified":"2026-04-10T14:11:52Z","title":"Wasmtime has a Heap OOB read in component model UTF-16 to latin1+utf16 string transcoding","vendor":"bytecodealliance","product":"wasmtime","tier":"tail","description":{"text":"Wasmtime is a runtime for WebAssembly. Prior to 24.0.7, 36.0.7, 42.0.2, and 43.0.1, Wasmtime contains a vulnerability where when transcoding a UTF-16 string to the latin1+utf16 component-model encoding it would incorrectly validate the byte length of the input string when performing a bounds check. Specifically the number of code units were checked instead of the byte length, which is twice the size of the code units. This vulnerability can cause the host to read beyond the end of a WebAssembly's linear memory in an attempt to transcode nonexistent bytes. In Wasmtime's default configuration this will read unmapped memory on a guard page, terminating the process with a segfault. Wasmtime can be configured, however, without guard pages which would mean that host memory beyond the end of linear memory may be read and interpreted as UTF-16. A host segfault is a denial-of-service vulnerability in Wasmtime, and possibly being able to read beyond the end of linear memory is additionally a vulnerability. Note that reading beyond the end of linear memory requires nonstandard configuration of Wasmtime, specifically with guard pages disabled. This vulnerability is fixed in 24.0.7, 36.0.7, 42.0.2, and 43.0.1.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.9,"severity":"MEDIUM","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0039,"percentile":0.34047,"provenance":"source"},"cwes":[{"id":"CWE-125","name":"Out-of-bounds Read"}],"references":[{"url":"https://github.com/bytecodealliance/wasmtime/security/advisories/GHSA-hx6p-xpx3-jvvv","tags":["x_refsource_CONFIRM"]}],"priority":{"score":11.6,"factors":[{"name":"EPSS percentile","points":6.81},{"name":"CVSS severity","points":4.83}]},"vendorSlug":"bytecodealliance","affectedVersions":[{"vendor":"bytecodealliance","product":"wasmtime","versions":["< 24.0.7",">= 25.0.0, < 36.0.7",">= 37.0.0, < 42.0.2",">= 43.0.0, < 44.0.1"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-04-10T14:11:45.884099Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"crates.io","package":"wasmtime","vulnerableRanges":["<24.0.7",">=25.0.0, <36.0.7",">=37.0.0, <42.0.2",">=43.0.0, <43.0.1",">=0.0.0-0, <24.0.7"],"patched":["24.0.7","36.0.7","42.0.2","43.0.1"],"from":["GHSA-hx6p-xpx3-jvvv","RUSTSEC-2026-0093"],"provenance":"source"}],"summary":{"text":"Wasmtime, the WebAssembly runtime from Bytecode Alliance, has an out-of-bounds read flaw in its component model code that transcodes UTF-16 strings to the latin1+utf16 encoding, where the bounds check compares code unit counts instead of byte lengths. An attacker who can get a guest module to supply crafted string data needs only low-privilege access and a user to take an action, and in the default configuration this crashes the host process, while a deployment with guard pages disabled could additionally expose adjacent host memory.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:55:56Z"},"euvd":{"id":"EUVD-2026-20988","exploited":false,"provenance":"source"}}