NetSight
medium5.3No CVE yet

GHSA-75qh-gg76-p2w4

CWA-2023-004: Excessive number of function parameters in compiled Wasm

Impact

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](https://github.com/CosmWasm/advisories/blob/main/CWAs/CWA-2023-004.md).

An attacker can exploit this over the network, without logging in, without any action by a user. If it succeeds: low risk of outages.

Affected packages

EcosystemPackageAffectedFixed in
rustcosmwasm-vm< 1.2.81.2.8
rustcosmwasm-vm>= 1.3.0, < 1.3.41.3.4
rustcosmwasm-vm>= 1.4.0, < 1.4.21.4.2
rustcosmwasm-vm>= 1.5.0, < 1.5.11.5.1
gogithub.com/CosmWasm/wasmvm< 1.2.51.2.5
gogithub.com/CosmWasm/wasmvm>= 1.3.0, < 1.3.11.3.1
gogithub.com/CosmWasm/wasmvm>= 1.4.0, < 1.4.21.4.2
gogithub.com/CosmWasm/wasmvm>= 1.5.0, < 1.5.11.5.1

Weakness classification

References