All reports
Medium

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

Affected versions

Version ranges need review.

Rust / Cargocosmwasm-vm
Affected versions
>= 1.5.0, < 1.5.1
Fixed version
1.5.1
Rust / Cargocosmwasm-vm
Affected versions
>= 1.3.0, < 1.3.4
Fixed version
1.3.4
Rust / Cargocosmwasm-vm
Affected versions
>=0.0.0-0 <1.2.8 || >=1.3.0 <1.3.4 || >=1.4.0 <1.4.2 || >=1.5.0 <1.5.1
Fixed version
1.2.8 · 1.3.4 · 1.4.2 · 1.5.1
Rust / Cargocosmwasm-vm
Affected versions
>= 1.4.0, < 1.4.2
Fixed version
1.4.2
Rust / Cargocosmwasm-vm
Affected versions
< 1.2.8
Fixed version
1.2.8
Affected versions
< 1.2.5
Fixed version
1.2.5
Affected versions
<1.2.5 || >=1.3.0 <1.3.1 || >=1.4.0 <1.4.2 || >=1.5.0 <1.5.1
Fixed version
1.2.5 · 1.3.1 · 1.4.2 · 1.5.1
Affected versions
>= 1.4.0, < 1.4.2
Fixed version
1.4.2
Affected versions
>= 1.3.0, < 1.3.1
Fixed version
1.3.1
Affected versions
>= 1.5.0, < 1.5.1
Fixed version
1.5.1

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.

Links