Vulnerability MediumRUSTSEC-2024-0366 · cosmwasm-vm
RUSTSEC-2024-0366: CWA-2023-004: Excessive number of function parameters in compiled Wasm
Short answerA security vulnerability in the cosmwasm-vm crate: CWA-2023-004: Excessive number of function parameters in compiled Wasm. GitHub rates it Medium. Fixed in 1.2.8, 1.3.4, 1.4.2, 1.5.1: update to a fixed version.
| Crate | cosmwasm-vm |
|---|---|
| Type | Vulnerability (denial-of-service) |
| Affected versions | 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. |
| Fixed in | 1.2.8, 1.3.4, 1.4.2, 1.5.1 |
| Severity | Medium (GitHub rating) |
| Published | 2024-08-27 |
| Last changed | 2025-10-28 |
| Also known as | GHSA-75qh-gg76-p2w4, GO-2024-3101 |
What to do
- See which version you have:
cargo tree -i cosmwasm-vm(it also shows which of your dependencies pulls it in). - Update within your version requirement:
cargo update -p cosmwasm-vm. If the fix is a newer major or minor than your requirement allows, raise it in Cargo.toml (for examplecosmwasm-vm = "1.5.1") or update the dependency that pulls it in. - Check again with
cargo audit, or paste your Cargo.lock into our Cargo.toml checker.
Details from the advisory
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
- Package: crates.io/crates/cosmwasm-vm
- Advisory: rustsec.org/advisories/RUSTSEC-2024-0366.html
- Advisory: github.com/CosmWasm/advisories/blob/main/CWAs/CWA-2023-004.md
From the RustSec Advisory Database (CC0-1.0) via the OSV export, downloaded Oct 24, 2026. Severity score computed from the published CVSS vector.
Other advisories for cosmwasm-vm
- VulnerabilityRUSTSEC-2024-0361 · 2024-08-08CWA-2024-004: Gas mispricing in cosmwasm-vm
- VulnerabilityGHSA-2q97-m5rc-p3gp · 2024-12-10CosmWasm VM Incorrect metering
- VulnerabilityGHSA-2q97-m5rc-p3gp · 2024-12-10CosmWasm VM Incorrect metering
- VulnerabilityGHSA-2q97-m5rc-p3gp · 2024-12-10CosmWasm VM Incorrect metering
- VulnerabilityGHSA-mx2j-7cmv-353c · 2025-02-04wasmvm: Malicious smart contract can slow down block production
- VulnerabilityGHSA-mx2j-7cmv-353c · 2025-02-04wasmvm: Malicious smart contract can slow down block production
- VulnerabilityGHSA-mx2j-7cmv-353c · 2025-02-04wasmvm: Malicious smart contract can slow down block production
- VulnerabilityGHSA-mx2j-7cmv-353c · 2025-02-04wasmvm: Malicious smart contract can slow down block production
Up next
Same cratecosmwasm-vm: security historyEvery advisory for this crate, and whether it is safe to use today.Read it next →Did this answer your question?