Wasmi
Wasmi's Linear Memory has a Critical Use After Free Vulnerability
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 0.41.0, < 0.41.2
- >= 0.42.0, < 0.47.1
- >= 0.50.0, < 0.51.3
- >= 1.0.0, < 1.0.1
Fixed in 0.41.2, 0.47.1, 0.51.3, 1.0.1
Mitigation
Upgrade wasmi to 0.41.2 or 0.47.1 or 0.51.3 or 1.0.1 or later.
References
- Vendor advisory github.com/wasmi-labs/wasmi/security/advisorie…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.