Skip to content
OpenAdvisories
Medium · 5.3 GHSA-75qh-gg76-p2w4 GO-2024-3101RUSTSEC-2024-0366

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

Published Aug 27, 2024 · Updated Oct 28, 2025 · Assigned by GHSA

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

Affected packages

EcosystemPackageAffectedFixedRecord
crates.io cosmwasm-vm < 1.2.8 1.2.8 GHSA-75qh-gg76-p2w4
crates.io cosmwasm-vm >= 1.3.0, < 1.3.4 1.3.4 GHSA-75qh-gg76-p2w4
crates.io cosmwasm-vm >= 1.4.0, < 1.4.2 1.4.2 GHSA-75qh-gg76-p2w4
crates.io cosmwasm-vm >= 1.5.0, < 1.5.1 1.5.1 GHSA-75qh-gg76-p2w4
crates.io cosmwasm-vm >= 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 1.2.8, 1.3.4, 1.4.2, 1.5.1 RUSTSEC-2024-0366
Go github.com/CosmWasm/wasmvm < 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 GO-2024-3101
Go github.com/CosmWasm/wasmvm < 1.2.5 1.2.5 GHSA-75qh-gg76-p2w4
Go github.com/CosmWasm/wasmvm >= 1.3.0, < 1.3.1 1.3.1 GHSA-75qh-gg76-p2w4
Go github.com/CosmWasm/wasmvm >= 1.4.0, < 1.4.2 1.4.2 GHSA-75qh-gg76-p2w4
Go github.com/CosmWasm/wasmvm >= 1.5.0, < 1.5.1 1.5.1 GHSA-75qh-gg76-p2w4

References