Skip to content

GHSA-75qh-gg76-p2w4 CWA-2023-004: Excessive number of function parameters in compiled Wasm

MediumCVSS 6.9
Published
Updated
Exploit status
No public exploit known

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.

Upgrade path

2 packages: 2 fixed.

PackageAffectedFixed inStatus
CosmWasm github.com/CosmWasm/wasmvm(Go) < 1.2.5; >= 1.3.0, < 1.3.1; >= 1.4.0, < 1.4.2; >= 1.5.0, < 1.5.1 1.2.5, 1.3.1, 1.4.2, 1.5.1 Fixed
crates.io cosmwasm-vm(crates.io) < 1.2.8; >= 0.0.0-0, < 1.2.8; >= 1.3.0, < 1.3.4; >= 1.4.0, < 1.4.2 +1 more 1.2.8, 1.3.4, 1.4.2, 1.5.1 Fixed

Affected products

ProductAffected versionsFixed in
crates.io cosmwasm-vm(crates.io) < 1.2.8 1.2.8
crates.io cosmwasm-vm(crates.io) >= 1.3.0, < 1.3.4 1.3.4
crates.io cosmwasm-vm(crates.io) >= 1.4.0, < 1.4.2 1.4.2
crates.io cosmwasm-vm(crates.io) >= 1.5.0, < 1.5.1 1.5.1
CosmWasm github.com/CosmWasm/wasmvm(Go) < 1.2.5 1.2.5
CosmWasm github.com/CosmWasm/wasmvm(Go) >= 1.3.0, < 1.3.1 1.3.1
CosmWasm github.com/CosmWasm/wasmvm(Go) >= 1.4.0, < 1.4.2 1.4.2
CosmWasm github.com/CosmWasm/wasmvm(Go) >= 1.5.0, < 1.5.1 1.5.1
crates.io cosmwasm-vm(crates.io) >= 0.0.0-0, < 1.2.8 1.2.8

References