CWA-2023-004: Excessive number of function parameters in compiled Wasm
Key facts
- Attack vector
- —
- Privileges required
- —
- User interaction
- —
- Attack complexity
- —
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- —
- Fix status
- Fixed
No CVSS vector from any source. Fix status from GitHub. Impact type from CWE-400.
Summary
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).
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | cosmwasm-vm (crates.io) | before 1.2.8 | 1.2.8 | Patch available | GHSA-75qh-gg76-p2w4 |
| — | cosmwasm-vm (crates.io) | 1.3.0 to before 1.3.4 | 1.3.4 | Patch available | GHSA-75qh-gg76-p2w4 |
| — | cosmwasm-vm (crates.io) | 1.4.0 to before 1.4.2 | 1.4.2 | Patch available | GHSA-75qh-gg76-p2w4 |
| — | cosmwasm-vm (crates.io) | 1.5.0 to before 1.5.1 | 1.5.1 | Patch available | GHSA-75qh-gg76-p2w4 |
| — | github.com/CosmWasm/wasmvm (Go) | before 1.2.5 | 1.2.5 | Patch available | GHSA-75qh-gg76-p2w4 |
| — | github.com/CosmWasm/wasmvm (Go) | 1.3.0 to before 1.3.1 | 1.3.1 | Patch available | GHSA-75qh-gg76-p2w4 |
| — | github.com/CosmWasm/wasmvm (Go) | 1.4.0 to before 1.4.2 | 1.4.2 | Patch available | GHSA-75qh-gg76-p2w4 |
| — | github.com/CosmWasm/wasmvm (Go) | 1.5.0 to before 1.5.1 | 1.5.1 | Patch available | GHSA-75qh-gg76-p2w4 |
- cosmwasm-vm (crates.io) Vendor— Affected before 1.2.8 Fixed in 1.2.8 Patch available GHSA-75qh-gg76-p2w4
- cosmwasm-vm (crates.io) Vendor— Affected 1.3.0 to before 1.3.4 Fixed in 1.3.4 Patch available GHSA-75qh-gg76-p2w4
- cosmwasm-vm (crates.io) Vendor— Affected 1.4.0 to before 1.4.2 Fixed in 1.4.2 Patch available GHSA-75qh-gg76-p2w4
- cosmwasm-vm (crates.io) Vendor— Affected 1.5.0 to before 1.5.1 Fixed in 1.5.1 Patch available GHSA-75qh-gg76-p2w4
- github.com/CosmWasm/wasmvm (Go) Vendor— Affected before 1.2.5 Fixed in 1.2.5 Patch available GHSA-75qh-gg76-p2w4
- github.com/CosmWasm/wasmvm (Go) Vendor— Affected 1.3.0 to before 1.3.1 Fixed in 1.3.1 Patch available GHSA-75qh-gg76-p2w4
- github.com/CosmWasm/wasmvm (Go) Vendor— Affected 1.4.0 to before 1.4.2 Fixed in 1.4.2 Patch available GHSA-75qh-gg76-p2w4
- github.com/CosmWasm/wasmvm (Go) Vendor— Affected 1.5.0 to before 1.5.1 Fixed in 1.5.1 Patch available GHSA-75qh-gg76-p2w4
Remediation
- Fix · GHSA-75qh-gg76-p2w4 cosmwasm-vm (crates.io) Fixed in 1.2.8 Advisory →
- Fix · GHSA-75qh-gg76-p2w4 cosmwasm-vm (crates.io) Fixed in 1.3.4 Advisory →
- Fix · GHSA-75qh-gg76-p2w4 cosmwasm-vm (crates.io) Fixed in 1.4.2 Advisory →
- Fix · GHSA-75qh-gg76-p2w4 cosmwasm-vm (crates.io) Fixed in 1.5.1 Advisory →
- Fix · GHSA-75qh-gg76-p2w4 github.com/CosmWasm/wasmvm (Go) Fixed in 1.2.5 Advisory →
- Fix · GHSA-75qh-gg76-p2w4 github.com/CosmWasm/wasmvm (Go) Fixed in 1.3.1 Advisory →
- Fix · GHSA-75qh-gg76-p2w4 github.com/CosmWasm/wasmvm (Go) Fixed in 1.4.2 Advisory →
- Fix · GHSA-75qh-gg76-p2w4 github.com/CosmWasm/wasmvm (Go) Fixed in 1.5.1 Advisory →
Timeline
- 2026-10-03 Threatist record created from GHSA-75qh-gg76-p2w4
References
Other 4
- 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
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences