{"id":"GHSA-75jp-vq8x-h4cq","revision":"7475d8d4f9ac4913a022188bcadde990","records":[{"revision":"7475d8d4f9ac4913a022188bcadde990","observedAt":"2026-10-24T13:19:54.901+00:00","statement":{"source":"osv","id":"GHSA-75jp-vq8x-h4cq","aliases":["CVE-2024-28123"],"title":"Wasmi Out-of-bounds Write for host to Wasm calls with more than 128 Parameters","description":"### Summary\n\nIn the WASMI Interpreter, an [Out-of-bounds Buffer Write](https://cwe.mitre.org/data/definitions/787.html) will arise arise if the host calls or resumes a Wasm function with more parameters than the default limit (128), as it will surpass the stack value. This doesn’t affect calls from Wasm to Wasm, only from host to Wasm.\n\n### Impact\n\nAfter conducting an analysis of the dependent Polkadot systems of `wasmi`: [Pallet Contracts](https://github.com/paritytech/polkadot-sdk/tree/master/substrate/frame/contracts), [Parity Signer](https://github.com/paritytech/parity-signer), and [Smoldot](https://github.com/smol-dot/smoldot), we have found that none on those systems have been affected by the issue as they are calling host to Wasm function with a small limited amount of parameters always. \n\n### Mitigations\n\nIf you are using `wasmi` betwen version 0.15.0 and 0.31.0, please update it to the [0.31.1](https://github.com/paritytech/wasmi/releases/tag/v0.31.1) patch release that we just published.\n\n### Workarounds\n\nEnsure no more than 128 parameters can be pass in a call from the host to a Wasm function. \n\n### References\n\nPatch PR: <PR>\n\n### Special thanks\n\nSpecial thanks to Stellar Development Foundation for reporting this security vulnerability.","state":0,"publishedAt":"2024-03-07T17:26:27+00:00","modifiedAt":"2026-09-10T03:50:10.1859378+00:00","affected":[{"ecosystem":"crates.io","name":"wasmi","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0.15.0"},{"kind":"fixed","version":"0.31.1"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"HIGH"}],"references":["https://github.com/wasmi-labs/wasmi/security/advisories/GHSA-75jp-vq8x-h4cq","https://nvd.nist.gov/vuln/detail/CVE-2024-28123","https://github.com/wasmi-labs/wasmi/commit/f7b3200e9f3dc9e2cbca966cb255c228453c792f","https://github.com/wasmi-labs/wasmi","https://github.com/wasmi-labs/wasmi/releases/tag/v0.31.1"],"sourceUrl":"https://github.com/advisories/GHSA-75jp-vq8x-h4cq","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-75jp-vq8x-h4cq","identifiers":["GHSA-75jp-vq8x-h4cq","CVE-2024-28123"]},"retained":false,"historicalAffected":[]}],"coverage":[]}