medium
CWA-2023-004: Excessive number of function parameters in compiled Wasm
- Severity
- medium CVSS:4.0 by GitHub
- Published
- Last changed
- Also known as
- GO-2024-3101RUSTSEC-2024-0366
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
| Product or package | Versions | Reported by |
|---|---|---|
| cosmwasm-vm (crates.io) | before 1.2.8, from 1.3.0 before 1.3.4, from 1.4.0 before 1.4.2, from 1.5.0 before 1.5.1, from 0.0.0-0 before 1.2.8 | GitHub Advisory Database, RustSec Advisory Database |
| github.com/CosmWasm/wasmvm (Go) | before 1.2.5, from 1.3.0 before 1.3.1, from 1.4.0 before 1.4.2, from 1.5.0 before 1.5.1 | GitHub Advisory Database, Go Vulnerability Database |
All scores
| GitHub | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
| GitHub | medium CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N |
Classification
What each source says
GitHub Advisory Database
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.
Go Vulnerability Database
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.
References
Sources
| Source | Record | Licence |
|---|---|---|
| GitHub Advisory Database | GHSA-75qh-gg76-p2w4 changed 2025-10-28 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2024-3101 changed 2026-03-03 | CC-BY-4.0 |
| RustSec Advisory Database | RUSTSEC-2024-0366 changed 2025-10-28 | CC0-1.0 |