CVE-2025-66627: Critical Use-After-Free in Wasmi's Linear Memory
Summary A use-after-free vulnerability has been discovered in the linear memory implementation of Wasmi. This issue can be triggered by a WebAssembly module under certain memory growth conditions, potentially leading to memory corruption, information disclosure, or code execution. Impact - Confidentiality: High – attacker-controlled memory reads possible.
Published Dec 8, 2025 · Updated Dec 9, 2025
Affected packages
wasmi
- Ecosystem
- Rust (crates.io)
- Affected
- >= 0.41.0, < 0.41.2
- Fixed in
- 0.41.2
- Check
cargo tree -i wasmi
wasmi
- Ecosystem
- Rust (crates.io)
- Affected
- >= 0.42.0, < 0.47.1
- Fixed in
- 0.47.1
- Check
cargo tree -i wasmi
wasmi
- Ecosystem
- Rust (crates.io)
- Affected
- >= 0.50.0, < 0.51.3
- Fixed in
- 0.51.3
- Check
cargo tree -i wasmi
wasmi
- Ecosystem
- Rust (crates.io)
- Affected
- >= 1.0.0, < 1.0.1
- Fixed in
- 1.0.1
- Check
cargo tree -i wasmi
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Summary
A use-after-free vulnerability has been discovered in the linear memory implementation of Wasmi. This issue can be triggered by a WebAssembly module under certain memory growth conditions, potentially leading to memory corruption, information disclosure, or code execution.
Impact
- Confidentiality: High – attacker-controlled memory reads possible.
- Integrity: High – memory corruption may allow arbitrary writes.
- Availability: High – interpreter crashes possible.
Affected Versions
Wasmi v0.41.0 through Wasmi v1.0.0.
Workarounds
- Upgrade to the latest patched version of Wasmi.
- Consider limiting the maximum linear memory sizes where feasible.
Credits
This vulnerability was discovered by Robert T. Morris (RTM).
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
