—
GO-2024-3101
Excessive number of function parameters in compiled Wasm in github.com/CosmWasm/wasmvm
Quick fix
GO-2024-3101 — github.com/CosmWasm/wasmvm: upgrade to the fixed version with the command below.
go get github.com/CosmWasm/wasmvm@v1.2.5Details
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.
Are you affected?
Enter the version of the package you're using.
Affected packages
Go/github.com/CosmWasm/wasmvm
Introduced in:
0Fixed in: 1.2.5Fix
go get github.com/CosmWasm/wasmvm@v1.2.5References
- https://github.com/advisories/GHSA-75qh-gg76-p2w4[ADVISORY]
- 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://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]