{"id":"JLSEC-2026-1364","summary":"Wasmtime has out-of-bounds write or crash when transcoding component model strings","details":"### Impact\n\nWasmtime's implementation of transcoding strings between components contains a bug where the return value of a guest component's `realloc` is not validated before the host attempts to write through the pointer. This enables a guest to cause the host to write arbitrary transcoded string bytes to an arbitrary location up to 4GiB away from the base of linear memory. These writes on the host could hit unmapped memory or could corrupt host data structures depending on Wasmtime's configuration.\n\nWasmtime by default reserves 4GiB of virtual memory for a guest's linear memory meaning that this bug will by default on hosts cause the host to hit unmapped memory and abort the process due to an unhandled fault. Wasmtime can be configured, however, to reserve less memory for a guest and to remove all guard pages, so some configurations of Wasmtime may lead to corruption of data outside of a guest's linear memory, such as host data structures or other guests's linear memories.\n\n### Patches\n\nWasmtime 24.0.7, 36.0.7, 42.0.2, and 43.0.1 have been issued to fix this bug. Users are recommended to update to these patched versions of Wasmtime.\n\n### Workarounds\n\nThere is no known workaround for this issue and affected hosts/embeddings are recommended to upgrade.","modified":"2026-08-21T21:14:20.152958738Z","published":"2026-08-21T20:43:33.133Z","upstream":["CVE-2026-35195","EUVD-2026-21039","GHSA-394w-hwhg-8vgm"],"database_specific":{"license":"CC-BY-4.0","sources":[{"url":"https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2026-35195","html_url":"https://nvd.nist.gov/vuln/detail/CVE-2026-35195","database_specific":{"status":"Analyzed"},"affected":{"bytecodealliance:wasmtime":["\u003c 24.0.7","= 43.0.0+rust","\u003e= 25.0.0, \u003c 36.0.7","\u003e= 37.0.0, \u003c 42.0.2"]},"id":"CVE-2026-35195","imported":"2026-08-21T20:09:02.079Z","modified":"2026-06-17T10:40:11.510Z","published":"2026-04-09T19:16:25.500Z"},{"url":"https://api.github.com/advisories/GHSA-394w-hwhg-8vgm","html_url":"https://github.com/advisories/GHSA-394w-hwhg-8vgm","id":"GHSA-394w-hwhg-8vgm","imported":"2026-08-21T20:09:14.773Z","modified":"2026-04-10T14:40:31Z","published":"2026-04-09T20:24:12Z"},{"url":"https://euvdservices.enisa.europa.eu/api/enisaid?id=EUVD-2026-21039","html_url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-21039","affected":{"bytecodealliance:wasmtime":["25.0.0, \u003c 36.0.7","37.0.0, \u003c 42.0.2","43.0.0, \u003c 44.0.1","\u003c 24.0.7"]},"id":"EUVD-2026-21039","imported":"2026-08-21T20:09:03.522Z","modified":"2026-04-13T15:38:27Z","published":"2026-04-09T18:55:56Z"}]},"references":[{"type":"WEB","url":"https://github.com/advisories/GHSA-394w-hwhg-8vgm"},{"type":"WEB","url":"https://github.com/bytecodealliance/wasmtime/security/advisories/GHSA-394w-hwhg-8vgm"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-35195"},{"type":"WEB","url":"https://rustsec.org/advisories/RUSTSEC-2026-0091.html"}],"affected":[{"package":{"name":"Wasmtime_jll","ecosystem":"Julia","purl":"pkg:julia/Wasmtime_jll?uuid=d20e7296-4f3e-515c-90b9-d2595a77bf72"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"45.0.1+0"}]}],"database_specific":{"source":"https://github.com/JuliaLang/SecurityAdvisories.jl/tree/generated/osv/2026/JLSEC-2026-1364.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N","source":"NVD"},{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:L/VI:L/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","source":"CNA"}],"credits":[{"name":"alexcrichton","contact":["https://github.com/alexcrichton"],"type":"OTHER"}]}