CVE-2025-66627 Wasmi's Linear Memory has a Critical Use After Free Vulnerability
HighCVSS 7.8
EPSS 0.16%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: total
Description
Wasmi is a WebAssembly interpreter focused on constrained and embedded systems. In versions 0.41.0, 0.41.1, 0.42.0 through 0.47.1, 0.50.0 through 0.51.2 and 1.0.0, Wasmi's linear memory implementation leads to a Use After Free vulnerability, triggered by a WebAssembly module under certain memory growth conditions. This issue potentially leads to memory corruption, information disclosure, or code execution. This issue is fixed in versions 0.41.2, 0.47.1, 0.51.3 and 1.0.1. To workaround this issue, consider limiting the maximum linear memory sizes where feasible.
Upgrade path
2 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| crates.io wasmi(crates.io) | >= 0.41.0, < 0.41.2; >= 0.42.0, < 0.47.1; >= 0.50.0, < 0.51.3; >= 1.0.0, < 1.0.1 | 0.41.2, 0.47.1, 0.51.3, 1.0.1 | Fixed |
| wasmi-labs wasmi | = 1.0.0; = >= 0.41.0, < 0.41.2; = >= 0.42.0, < 0.47.1; = >= 0.50.0, < 0.51.3 +4 more | 0.41.2, 0.47.1, 0.51.3 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| crates.io wasmi(crates.io) | >= 0.41.0, < 0.41.2 | 0.41.2 |
| crates.io wasmi(crates.io) | >= 0.42.0, < 0.47.1 | 0.47.1 |
| crates.io wasmi(crates.io) | >= 0.50.0, < 0.51.3 | 0.51.3 |
| crates.io wasmi(crates.io) | >= 1.0.0, < 1.0.1 | 1.0.1 |
| wasmi-labs wasmi | = >= 0.41.0, < 0.41.2 | No fix listed |
| wasmi-labs wasmi | = >= 0.42.0, < 0.47.1 | No fix listed |
| wasmi-labs wasmi | = >= 0.50.0, < 0.51.3 | No fix listed |
| wasmi-labs wasmi | = >= 1.0.0, < 1.0.1 | No fix listed |
| wasmi-labs wasmi | >= 0.41.0, < 0.41.2 | 0.41.2 |
| wasmi-labs wasmi | >= 0.47.0, < 0.47.1 | 0.47.1 |
| wasmi-labs wasmi | >= 0.51.0, < 0.51.3 | 0.51.3 |
| wasmi-labs wasmi | = 1.0.0 | No fix listed |
References
- https://github.com/wasmi-labs/wasmi/security/advisories/GHSA-g4v2-cjqp-rfmq patch vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com patch
- github.com product
- github.com