{"id":"GHSA-75qh-gg76-p2w4","aliases":["GHSA-75qh-gg76-p2w4","GO-2024-3101","RUSTSEC-2024-0366"],"related":[],"kind":"vulnerability","state":"published","title":"CWA-2023-004: Excessive number of function parameters in compiled Wasm","summary":"A specifically crafted Wasm file can cause the VM to consume excessive amounts of memory when compiling a contract.\nThis can lead to high memory usage, slowdowns, potentially a crash and can poison a lock in the VM,\npreventing any further interaction with contracts.\n\nFor more information, see [CWA-2023-004](https://github.com/CosmWasm/advisories/blob/main/CWAs/CWA-2023-004.md).","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"A specifically crafted Wasm file can cause the VM to consume excessive amounts of memory when compiling a contract.\nThis can lead to high memory usage, slowdowns, potentially a crash and can poison a lock in the VM,\npreventing any further interaction with contracts.\n\nFor more information, see [CWA-2023-004](https://github.com/CosmWasm/advisories/blob/main/CWAs/CWA-2023-004.md).","format":"markdown","source":"ghsa"},{"lang":"en","text":"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.","format":"markdown","source":"go"}],"published":"2024-08-27T12:00:00.000Z","modified":"2026-03-03T04:55:46.566Z","severity":{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N","rating":"MEDIUM"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","score":5.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N","rating":"MEDIUM"}],"cwes":["CWE-400"],"affected":[{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.2.8"}],"ecosystem":"crates.io","package":"cosmwasm-vm","purl":"pkg:cargo/cosmwasm-vm","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"1.3.0","status":"affected","fixed":"1.3.4"}],"ecosystem":"crates.io","package":"cosmwasm-vm","purl":"pkg:cargo/cosmwasm-vm","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"1.4.0","status":"affected","fixed":"1.4.2"}],"ecosystem":"crates.io","package":"cosmwasm-vm","purl":"pkg:cargo/cosmwasm-vm","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"1.5.0","status":"affected","fixed":"1.5.1"}],"ecosystem":"crates.io","package":"cosmwasm-vm","purl":"pkg:cargo/cosmwasm-vm","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.2.5"}],"ecosystem":"Go","package":"github.com/CosmWasm/wasmvm","purl":"pkg:golang/github.com/CosmWasm/wasmvm","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"1.3.0","status":"affected","fixed":"1.3.1"}],"ecosystem":"Go","package":"github.com/CosmWasm/wasmvm","purl":"pkg:golang/github.com/CosmWasm/wasmvm","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"1.4.0","status":"affected","fixed":"1.4.2"}],"ecosystem":"Go","package":"github.com/CosmWasm/wasmvm","purl":"pkg:golang/github.com/CosmWasm/wasmvm","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"1.5.0","status":"affected","fixed":"1.5.1"}],"ecosystem":"Go","package":"github.com/CosmWasm/wasmvm","purl":"pkg:golang/github.com/CosmWasm/wasmvm","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.2.5"},{"type":"semver","introduced":"1.3.0","status":"affected","fixed":"1.3.1"},{"type":"semver","introduced":"1.4.0","status":"affected","fixed":"1.4.2"},{"type":"semver","introduced":"1.5.0","status":"affected","fixed":"1.5.1"}],"ecosystem":"Go","package":"github.com/CosmWasm/wasmvm","purl":"pkg:golang/github.com/CosmWasm/wasmvm","source":"go"},{"ranges":[{"type":"semver","introduced":"0.0.0-0","status":"affected","fixed":"1.2.8"},{"type":"semver","introduced":"1.3.0","status":"affected","fixed":"1.3.4"},{"type":"semver","introduced":"1.4.0","status":"affected","fixed":"1.4.2"},{"type":"semver","introduced":"1.5.0","status":"affected","fixed":"1.5.1"}],"ecosystem":"crates.io","package":"cosmwasm-vm","purl":"pkg:cargo/cosmwasm-vm","source":"rustsec"}],"references":[{"url":"https://forum.cosmos.network/t/high-severity-security-patch-upcoming-on-wed-10th-cwa-2023-004-brought-to-you-by-certik-and-confio/12840","tags":["web"],"sources":["ghsa","go"]},{"url":"https://github.com/CosmWasm/advisories/blob/main/CWAs/CWA-2023-004.md","tags":["advisory","web"],"sources":["ghsa","go","rustsec"]},{"url":"https://github.com/advisories/GHSA-75qh-gg76-p2w4","tags":["advisory"],"sources":["ghsa","go"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2024-0366.html","tags":["advisory","web"],"sources":["ghsa","go","rustsec"]},{"url":"https://www.certik.com/resources/blog/risk-and-security-enhancement-for-app-chains-an-in-depth-writeup-of-cwa-2023","tags":["web"],"sources":["ghsa","go"]},{"url":"https://crates.io/crates/cosmwasm-vm","tags":["package"],"sources":["rustsec"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-75qh-gg76-p2w4","url":"https://github.com/advisories/GHSA-75qh-gg76-p2w4","licence":"CC-BY-4.0","modified":"2025-10-28T06:29:18.064Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2024-3101","url":"https://pkg.go.dev/vuln/GO-2024-3101","licence":"CC-BY-4.0","modified":"2026-03-03T04:55:46.566Z"},{"source":"rustsec","name":"RustSec Advisory Database","id":"RUSTSEC-2024-0366","url":"https://rustsec.org/advisories/RUSTSEC-2024-0366.html","licence":"CC0-1.0","modified":"2025-10-28T06:29:18.064Z"}],"updatedAt":"2026-11-25T22:56:43.211Z"}