GHSA-75qh-gg76-p2w4: CWA-2023-004: Excessive number of function parameters in compiled Wasm
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.
Published Aug 27, 2024 · Updated Dec 23, 2024
Affected packages
cosmwasm-vm
- Ecosystem
- Rust (crates.io)
- Affected
- < 1.2.8
- Fixed in
- 1.2.8
- Check
cargo tree -i cosmwasm-vm
cosmwasm-vm
- Ecosystem
- Rust (crates.io)
- Affected
- >= 1.3.0, < 1.3.4
- Fixed in
- 1.3.4
- Check
cargo tree -i cosmwasm-vm
cosmwasm-vm
- Ecosystem
- Rust (crates.io)
- Affected
- >= 1.4.0, < 1.4.2
- Fixed in
- 1.4.2
- Check
cargo tree -i cosmwasm-vm
cosmwasm-vm
- Ecosystem
- Rust (crates.io)
- Affected
- >= 1.5.0, < 1.5.1
- Fixed in
- 1.5.1
- Check
cargo tree -i cosmwasm-vm
github.com/CosmWasm/wasmvm
- Ecosystem
- Go
- Affected
- < 1.2.5
- Fixed in
- 1.2.5
- Check
go list -m github.com/CosmWasm/wasmvm
github.com/CosmWasm/wasmvm
- Ecosystem
- Go
- Affected
- >= 1.3.0, < 1.3.1
- Fixed in
- 1.3.1
- Check
go list -m github.com/CosmWasm/wasmvm
github.com/CosmWasm/wasmvm
- Ecosystem
- Go
- Affected
- >= 1.4.0, < 1.4.2
- Fixed in
- 1.4.2
- Check
go list -m github.com/CosmWasm/wasmvm
github.com/CosmWasm/wasmvm
- Ecosystem
- Go
- Affected
- >= 1.5.0, < 1.5.1
- Fixed in
- 1.5.1
- Check
go list -m github.com/CosmWasm/wasmvm
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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.
References
- https://forum.cosmos.network/t/high-severity-security-patch-upcoming-on-wed-10th-cwa-2023-004-brought-to-you-by-certik-and-confio/12840
- https://github.com/CosmWasm/advisories/blob/main/CWAs/CWA-2023-004.md
- https://rustsec.org/advisories/RUSTSEC-2024-0366.html
- https://www.certik.com/resources/blog/risk-and-security-enhancement-for-app-chains-an-in-depth-writeup-of-cwa-2023
- https://github.com/advisories/GHSA-75qh-gg76-p2w4
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Rust (crates.io) vulnerabilities
All Rust (crates.io) entriesGHSA-23qp-3c2m-xx6w
wasmvm: Malicious smart contract can crash the chain
mediumFeb 4, 2025GHSA-mx2j-7cmv-353c
wasmvm: Malicious smart contract can slow down block production
mediumFeb 4, 2025GHSA-2q97-m5rc-p3gp
CosmWasm VM Incorrect metering
mediumDec 10, 2024GHSA-vmqh-5232-v43r
Panic in wasmvm can slow down block production
mediumDec 10, 2024GHSA-rg2q-2jh9-447q
Gas mispricing in cosmwasm-vm
medium4.3Aug 8, 2024
