Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2025-64345

LOW 1.8EPSS 2%

Wasmtime provides unsound API access to a WebAssembly shared linear memory

Also known as GHSA-hc7m-r6v8-hg9q, RUSTSEC-2025-0118

Mitigation

  • Upgrade wasmtime to one of 38.0.4, 37.0.3, 36.0.3, 24.0.5 (or later in the same release line).

Who should check

  • Projects that depend on crates.io package wasmtime (>= 38.0.0, < 38.0.4)
  • Anyone running bytecodealliance wasmtime >= 38.0.1, < 38.0.4; >= 37.0.0, < 37.0.3; >= 26.0.0, < 36.0.3; < 24.0.5

Vulnerability facts

Affected
wasmtime >= 38.0.0, < 38.0.4
Fixed in
38.0.4, 37.0.3, 36.0.3, 24.0.5
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Not remotely exploitable (local or adjacent access needed)
CVSS
1.8 (v3.1, CNA)CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:N/I:L/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Local
  • Attack complexity: High
  • Privileges required: High
  • User interaction: Required
  • Scope: Unchanged
  • Confidentiality impact: None
  • Integrity impact: Low
  • Availability impact: None
EPSS
0.15% chance of exploitation in 30 days (percentile 2, 2026-11-26)
CWE
CWE-362
Published
Modified

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.

Affected and fixed versions

Package / productAffectedFixedSource
crates.io wasmtime>= 38.0.0, < 38.0.438.0.4, 37.0.3, 36.0.3, 24.0.5osv
bytecodealliance wasmtime>= 38.0.1, < 38.0.4; >= 37.0.0, < 37.0.3; >= 26.0.0, < 36.0.3; < 24.0.5—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2025-64345. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-64345.md
Affected: wasmtime >= 38.0.0, < 38.0.4
Fixed in: 38.0.4, 37.0.3, 36.0.3, 24.0.5

Steps:
1. Search this machine and project for wasmtime (crates.io), bytecodealliance wasmtime: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2025-64345 being exploited?

There is no confirmed exploitation: CVE-2025-64345 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.15% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2025-64345?

Low: CVSS 1.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed). A user has to take an action, such as opening a link, for the attack to work. The attack needs conditions outside the attacker's control, which makes it harder.

Which versions are affected by CVE-2025-64345?

wasmtime >= 38.0.0, < 38.0.4.

Is there a fix for CVE-2025-64345?

Yes. Fixed in 38.0.4, 37.0.3, 36.0.3, 24.0.5. Upgrade wasmtime to one of 38.0.4, 37.0.3, 36.0.3, 24.0.5 (or later in the same release line).

How do I check if I'm affected by CVE-2025-64345?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors