# CVE-2025-64345: Wasmtime provides unsound API access to a WebAssembly shared linear memory

- Severity: Low 1.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:N/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.12%, higher than 1% of CVEs (2026-12-01)
- Published: 2025-11-11T12:00:00.000Z
- Modified: 2026-10-18T20:10:00.110Z
- Also known as: GHSA-hc7m-r6v8-hg9q, RUSTSEC-2025-0118
- Weaknesses: CWE-362
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: 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.

(As written by CVE List.)

## Affected

- bytecodealliance wasmtime: >= 38.0.1, < 38.0.4; >= 37.0.0, < 37.0.3; >= 26.0.0, < 36.0.3; < 24.0.5
- wasmtime (crates.io): from 38.0.0 before 38.0.4; from 37.0.0 before 37.0.3; from 26.0.0 before 36.0.3; before 24.0.5; from 0.0.0-0 before 24.0.5; from 25.0.0 before 36.0.3

## Every score

- GitHub_M: CVSS:3.1 1.8 Low `CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:N/I:L/A:N`
- GitHub: CVSS:3.1 1.8 Low `CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:N/I:L/A:N`
- RustSec Advisory Database: CVSS:3.1 1.8 Low `CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:N/I:L/A:N`

## References

- <https://github.com/bytecodealliance/wasmtime/security/advisories/GHSA-hc7m-r6v8-hg9q> (web)
- <https://github.com/bytecodealliance/wasmtime/commit/9ebb6934f00d58b92fb68ed0e0b16c0ae828ca10> (web)
- <https://docs.rs/wasmtime/latest/wasmtime/struct.Memory.html#method.new> (web)
- <https://docs.rs/wasmtime/latest/wasmtime/struct.SharedMemory.html#method.new> (web)
- <https://docs.wasmtime.dev/stability-release.html> (web)
- <https://github.com/bytecodealliance/wasmtime/releases/tag/v38.0.4> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-64345> (advisory)
- <https://github.com/bytecodealliance/wasmtime> (package)
- <https://rustsec.org/advisories/RUSTSEC-2025-0118.html> (advisory, web)
- <https://crates.io/crates/wasmtime> (package)

## Sources

- CVE List: [CVE-2025-64345](https://www.cve.org/CVERecord?id=CVE-2025-64345), CVE Terms of Use, modified 2025-11-12
- GitHub Advisory Database: [GHSA-hc7m-r6v8-hg9q](https://github.com/advisories/GHSA-hc7m-r6v8-hg9q), CC-BY-4.0, modified 2026-09-10
- RustSec Advisory Database: [RUSTSEC-2025-0118](https://rustsec.org/advisories/RUSTSEC-2025-0118.html), CC0-1.0, modified 2026-10-12
- NVD: [CVE-2025-64345](https://nvd.nist.gov/vuln/detail/CVE-2025-64345), Public domain, modified 2026-10-18

---

Page: https://cve.day/CVE-2025-64345 · Whole record: https://cve.day/CVE-2025-64345.json · Rebuilt by cve.day 2026-11-25T22:59:07.603Z
