# GHSA-75QH-GG76-P2W4: A specifically crafted Wasm file can cause the VM to consume excessive amounts of memory when compiling a contract

- Database: GitHub
- Severity: medium (stated by ghsa, no CVSS score)
- Published: 2024-08-27
- Modified: 2025-10-28

## Also published as

- [GO-2024-3101](https://cve.now/GO-2024-3101.md) (Go)
- [RUSTSEC-2024-0366](https://cve.now/RUSTSEC-2024-0366.md) (RustSec)

## Affected versions

- cosmwasm-vm (crates.io): fixed in 1.2.8
- cosmwasm-vm (crates.io): from 1.3.0, fixed in 1.3.4
- cosmwasm-vm (crates.io): from 1.4.0, fixed in 1.4.2
- cosmwasm-vm (crates.io): from 1.5.0, fixed in 1.5.1
- github.com/CosmWasm/wasmvm (Go): fixed in 1.2.5
- github.com/CosmWasm/wasmvm (Go): from 1.3.0, fixed in 1.3.1
- github.com/CosmWasm/wasmvm (Go): from 1.4.0, fixed in 1.4.2
- github.com/CosmWasm/wasmvm (Go): from 1.5.0, fixed in 1.5.1

## 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).

## 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://github.com/advisories/GHSA-75qh-gg76-p2w4
- 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

Page: https://cve.now/GHSA-75QH-GG76-P2W4

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
