{"id":"GHSA-75qh-gg76-p2w4","aliases":["GO-2024-3101","RUSTSEC-2024-0366"],"status":"published","title":"CWA-2023-004: Excessive number of function parameters in compiled Wasm","description":"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).","severity":{"version":"4.0","score":6.9,"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","level":"medium","from":"ghsa"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-400"],"published":"2024-08-27T12:00:00Z","modified":"2026-03-03T04:55:46Z","fixes":[{"ecosystem":"crates.io","package":"cosmwasm-vm","fixed_in":["1.2.8","1.3.4","1.4.2","1.5.1"],"sources":["ghsa","osv"]},{"ecosystem":"Go","package":"github.com/CosmWasm/wasmvm","fixed_in":["1.2.5","1.3.1","1.4.2","1.5.1"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"crates.io","package":"cosmwasm-vm","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.2.8"}]}]},{"source":"ghsa","ecosystem":"crates.io","package":"cosmwasm-vm","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.3.0"},{"fixed":"1.3.4"}]}]},{"source":"ghsa","ecosystem":"crates.io","package":"cosmwasm-vm","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.4.0"},{"fixed":"1.4.2"}]}]},{"source":"ghsa","ecosystem":"crates.io","package":"cosmwasm-vm","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.5.0"},{"fixed":"1.5.1"}]}]},{"source":"ghsa","ecosystem":"Go","package":"github.com/CosmWasm/wasmvm","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.2.5"}]}]},{"source":"ghsa","ecosystem":"Go","package":"github.com/CosmWasm/wasmvm","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.3.0"},{"fixed":"1.3.1"}]}]},{"source":"ghsa","ecosystem":"Go","package":"github.com/CosmWasm/wasmvm","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.4.0"},{"fixed":"1.4.2"}]}]},{"source":"ghsa","ecosystem":"Go","package":"github.com/CosmWasm/wasmvm","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.5.0"},{"fixed":"1.5.1"}]}]},{"source":"osv","ecosystem":"crates.io","package":"cosmwasm-vm","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.2.8"}]}]},{"source":"osv","ecosystem":"crates.io","package":"cosmwasm-vm","ranges":[{"type":"SEMVER","events":[{"introduced":"1.3.0"},{"fixed":"1.3.4"}]}]},{"source":"osv","ecosystem":"crates.io","package":"cosmwasm-vm","ranges":[{"type":"SEMVER","events":[{"introduced":"1.4.0"},{"fixed":"1.4.2"}]}]},{"source":"osv","ecosystem":"crates.io","package":"cosmwasm-vm","ranges":[{"type":"SEMVER","events":[{"introduced":"1.5.0"},{"fixed":"1.5.1"}]}]},{"source":"osv","ecosystem":"Go","package":"github.com/CosmWasm/wasmvm","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.2.5"}]}]},{"source":"osv","ecosystem":"Go","package":"github.com/CosmWasm/wasmvm","ranges":[{"type":"SEMVER","events":[{"introduced":"1.3.0"},{"fixed":"1.3.1"}]}]},{"source":"osv","ecosystem":"Go","package":"github.com/CosmWasm/wasmvm","ranges":[{"type":"SEMVER","events":[{"introduced":"1.4.0"},{"fixed":"1.4.2"}]}]},{"source":"osv","ecosystem":"Go","package":"github.com/CosmWasm/wasmvm","ranges":[{"type":"SEMVER","events":[{"introduced":"1.5.0"},{"fixed":"1.5.1"}]}]},{"source":"osv","ecosystem":"Go","package":"github.com/CosmWasm/wasmvm","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.2.5"},{"introduced":"1.3.0"},{"fixed":"1.3.1"},{"introduced":"1.4.0"},{"fixed":"1.4.2"},{"introduced":"1.5.0"},{"fixed":"1.5.1"}]}]},{"source":"osv","ecosystem":"crates.io","package":"cosmwasm-vm","ranges":[{"type":"SEMVER","events":[{"introduced":"0.0.0-0"},{"fixed":"1.2.8"},{"introduced":"1.3.0"},{"fixed":"1.3.4"},{"introduced":"1.4.0"},{"fixed":"1.4.2"},{"introduced":"1.5.0"},{"fixed":"1.5.1"}]}]}],"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"]},{"url":"https://github.com/CosmWasm/advisories/blob/main/CWAs/CWA-2023-004.md","tags":["web","advisory"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2024-0366.html","tags":["web","advisory"]},{"url":"https://www.certik.com/resources/blog/risk-and-security-enhancement-for-app-chains-an-in-depth-writeup-of-cwa-2023","tags":["web"]},{"url":"https://github.com/advisories/GHSA-75qh-gg76-p2w4","tags":["advisory"]},{"url":"https://crates.io/crates/cosmwasm-vm","tags":["package"]}],"sources":{"ghsa":[{"id":"GHSA-75qh-gg76-p2w4","title":"CWA-2023-004: Excessive number of function parameters in compiled Wasm","description":"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).\n","status":"published","published":"2024-08-27T19:55:40Z","modified":"2024-12-23T17:13:09Z","cvss":[{"version":"4.0","score":6.9,"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","level":"medium"},{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","level":"medium"}],"cwes":["CWE-400"],"updated_at":"2026-11-02T14:38:26.167657Z"}],"osv":[{"id":"GHSA-75qh-gg76-p2w4","title":"CWA-2023-004: Excessive number of function parameters in compiled Wasm","description":"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).\n","status":"published","published":"2024-08-27T19:55:40Z","modified":"2025-10-28T06:29:18.064669Z","cvss":[{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","level":"medium"},{"version":"4.0","score":6.9,"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","level":"medium"}],"cwes":["CWE-400"],"updated_at":"2026-11-02T15:46:40.657155Z"},{"id":"GO-2024-3101","title":"Excessive number of function parameters in compiled Wasm in github.com/CosmWasm/wasmvm","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.","status":"published","published":"2024-12-20T20:36:46Z","modified":"2026-03-03T04:55:46.566746Z","updated_at":"2026-11-02T15:47:01.453823Z"},{"id":"RUSTSEC-2024-0366","title":"CWA-2023-004: Excessive number of function parameters in compiled Wasm","description":"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).","status":"published","published":"2024-08-27T12:00:00Z","modified":"2025-10-28T06:29:18.064669Z","updated_at":"2026-11-02T15:53:39.971022Z"}]}}
