{"id":"CVE-2025-64345","published":"2025-11-12T21:25:50Z","modified":"2025-11-12T21:40:37Z","title":"Wasmtime provides unsound API access to a WebAssembly shared linear memory","vendor":"bytecodealliance","product":"wasmtime","tier":"tail","description":{"text":"Wasmtime is a runtime for WebAssembly. Prior to version 38.0.4, 37.0.3, 36.0.3, and 24.0.5, Wasmtime's Rust embedder API contains an unsound interaction where a WebAssembly shared linear memory could be viewed as a type which provides safe access to the host (Rust) to the contents of the linear memory. This is not sound for shared linear memories, which could be modified in parallel, and this could lead to a data race in the host. Patch releases have been issued for all supported versions of Wasmtime, notably: 24.0.5, 36.0.3, 37.0.3, and 38.0.4. These releases reject creation of shared memories via `Memory::new` and shared memories are now excluded from core dumps. As a workaround, eembeddings affected by this issue should use `SharedMemory::new` instead of `Memory::new` to create shared memories. Affected embeddings should also disable core dumps if they are unable to upgrade. Note that core dumps are disabled by default but the wasm threads proposal (and shared memory) is enabled by default.","provenance":"source","from":"CVE.org"},"cvss":{"score":1.8,"severity":"LOW","version":"3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:N/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00116,"percentile":0.01674,"provenance":"source"},"cwes":[{"id":"CWE-362","name":"Concurrent Execution using Shared Resource with Improper Synchronization"}],"references":[{"url":"https://github.com/bytecodealliance/wasmtime/security/advisories/GHSA-hc7m-r6v8-hg9q","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/bytecodealliance/wasmtime/commit/9ebb6934f00d58b92fb68ed0e0b16c0ae828ca10","tags":["x_refsource_MISC"]},{"url":"https://docs.rs/wasmtime/latest/wasmtime/struct.Memory.html#method.new","tags":["x_refsource_MISC"]},{"url":"https://docs.rs/wasmtime/latest/wasmtime/struct.SharedMemory.html#method.new","tags":["x_refsource_MISC"]},{"url":"https://docs.wasmtime.dev/stability-release.html","tags":["x_refsource_MISC"]},{"url":"https://github.com/bytecodealliance/wasmtime/releases/tag/v38.0.4","tags":["x_refsource_MISC"]}],"priority":{"score":1.6,"factors":[{"name":"EPSS percentile","points":0.33},{"name":"CVSS severity","points":1.26}]},"vendorSlug":"bytecodealliance","affectedVersions":[{"vendor":"bytecodealliance","product":"wasmtime","versions":[">= 38.0.1, < 38.0.4",">= 37.0.0, < 37.0.3",">= 26.0.0, < 36.0.3","< 24.0.5"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-11-12T21:40:25.293462Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"crates.io","package":"wasmtime","vulnerableRanges":[">=38.0.0, <38.0.4",">=37.0.0, <37.0.3",">=26.0.0, <36.0.3","<24.0.5",">=0.0.0-0, <24.0.5",">=25.0.0, <36.0.3"],"patched":["38.0.4","37.0.3","36.0.3","24.0.5"],"from":["GHSA-hc7m-r6v8-hg9q","RUSTSEC-2025-0118"],"provenance":"source"}],"summary":{"text":"The flaw is in the Rust embedder API of Wasmtime, the WebAssembly runtime from Bytecode Alliance, where a shared linear memory can be viewed as a type that gives the Rust host safe access to its contents even though shared memories can be modified in parallel, creating a data race risk in the host. An attacker who can run WebAssembly code within an affected embedding, with the host's shared memory use and core dumps enabled, could potentially trigger a data race in the host, but the attack requires local access, high attack complexity, high privileges, and user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:23:54Z"},"euvd":{"id":"EUVD-2025-131930","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2024-51745","published":"2024-11-05","fixed":"26.0.1","kev":false},{"cve":"CVE-2025-53901","published":"2025-07-18","fixed":"34.0.2","kev":false,"link":{"from":"CVE-2025-53901","to":"CVE-2025-64345","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"crates.io:wasmtime","fromFixed":"24.0.4","toFixed":"24.0.5","daysApart":117}]}},{"cve":"CVE-2025-62711","published":"2025-10-24","fixed":"38.0.3","kev":false,"link":{"from":"CVE-2025-62711","to":"CVE-2025-64345","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"crates.io:wasmtime","fromFixed":"38.0.3","toFixed":"38.0.4","daysApart":19}]}},{"cve":"CVE-2025-64345","published":"2025-11-12","fixed":"38.0.4","kev":false},{"cve":"CVE-2026-24116","published":"2026-01-27","fixed":"41.0.1","kev":false,"link":{"from":"CVE-2025-64345","to":"CVE-2026-24116","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"crates.io:wasmtime","fromFixed":"36.0.3","toFixed":"36.0.5","daysApart":76}]}},{"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}],"package":"crates.io:wasmtime"}}