A specifically crafted Wasm file can cause the VM to consume excessive amounts of memory when compiling a contract
Description
A specifically crafted Wasm file can cause the VM to consume excessive amounts of memory when compiling a contract. This can lead to high memory usage, slowdowns, potentially a crash and can poison a lock in the VM, preventing any further interaction with contracts.
For more information, see CWA-2023-004.
Affected versions
- cosmwasm-vmfixed in 1.2.8
- cosmwasm-vmFrom 1.3.0 · fixed in 1.3.4
- cosmwasm-vmFrom 1.4.0 · fixed in 1.4.2
- cosmwasm-vmFrom 1.5.0 · fixed in 1.5.1
- github.com/CosmWasm/wasmvmfixed in 1.2.5
- github.com/CosmWasm/wasmvmFrom 1.3.0 · fixed in 1.3.1
- github.com/CosmWasm/wasmvmFrom 1.4.0 · fixed in 1.4.2
- github.com/CosmWasm/wasmvmFrom 1.5.0 · fixed in 1.5.1