CVE-2025-64345
published low CVSS 3.1 · 1.8Wasmtime provides unsound API access to a WebAssembly shared linear memory
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| bytecodealliance | — | wasmtime>= 38.0.1, < 38.0.4 · >= 37.0.0, < 37.0.3 · >= 26.0.0, < 36.0.3 · < 24.0.5 | Affected | Not stated | GitHub_M |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 1.8 / 10
- Severity
- low
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:N/I:L/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| bytecodealliance | wasmtime | >= 38.0.1, < 38.0.4 (affected)>= 37.0.0, < 37.0.3 (affected)>= 26.0.0, < 36.0.3 (affected)< 24.0.5 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-362 CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')
References
6- https://docs.rs/wasmtime/latest/wasmtime/struct.Memory.html#method.new
- https://docs.rs/wasmtime/latest/wasmtime/struct.SharedMemory.html#method.new
- https://docs.wasmtime.dev/stability-release.html
- https://github.com/bytecodealliance/wasmtime/commit/9ebb6934f00d58b92fb68ed0e0b16c0ae828ca10
- https://github.com/bytecodealliance/wasmtime/releases/tag/v38.0.4
- https://github.com/bytecodealliance/wasmtime/security/advisories/GHSA-hc7m-r6v8-hg9q
Provider assertions
2GitHub_M · cna
Wasmtime provides unsound API access to a WebAssembly shared linear memory
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- fcb769caccbc598a7fbc30c18ccaab628c1cbc9de51e8763e5654b461fe0c8f0
- Ingested
- 23 Sep 2026, 08:56:07 UTC
- Source record
- Official CVE record