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
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| 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
- https://forum.cosmos.network/t/high-severity-security-patch-upcoming-on-wed-10th-cwa-2023-004-brought-to-you-by-certik-and-confio/12840 web
- https://github.com/CosmWasm/advisories/blob/main/CWAs/CWA-2023-004.md web
- https://github.com/advisories/GHSA-75qh-gg76-p2w4 advisory
- https://rustsec.org/advisories/RUSTSEC-2024-0366.html web
- https://www.certik.com/resources/blog/risk-and-security-enhancement-for-app-chains-an-in-depth-writeup-of-cwa-2023 web