{"id":"CVE-2024-28123","aliases":["CVE-2024-28123","GHSA-75jp-vq8x-h4cq"],"related":[],"kind":"vulnerability","state":"published","title":"Wasmi Out-of-bounds Write for host to Wasm calls with more than 128 Parameters","summary":"Wasmi is an efficient and lightweight WebAssembly interpreter with a focus on constrained and embedded systems. In the WASMI Interpreter, an Out-of-bounds Buffer Write will 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. This vulnerability was patched in version 0.31.1.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Wasmi is an efficient and lightweight WebAssembly interpreter with a focus on constrained and embedded systems. In the WASMI Interpreter, an Out-of-bounds Buffer Write will 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. This vulnerability was patched in version 0.31.1.","source":"cvelist"},{"lang":"en","text":"### 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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Wasmi es un intérprete de WebAssembly eficiente y liviano centrado en sistemas integrados y restringidos. En el intérprete WASMI, surgirá una escritura de búfer fuera de los límites si el host llama o reanuda una función Wasm con más parámetros que el límite predeterminado (128), ya que superará el valor de la pila. Esto no afecta las llamadas de Wasm a Wasm, solo del host a Wasm. Esta vulnerabilidad fue parcheada en la versión 0.31.1.","source":"nvd"}],"published":"2024-03-07T17:26:27.000Z","modified":"2026-09-10T03:50:10.185Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","score":7.3,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","score":7.3,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","score":7.3,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"}],"cwes":["CWE-787"],"affected":[{"ranges":[{"version":">= 0.15.0, <= 0.31.0","status":"affected"}],"vendor":"wasmi-labs","product":"wasmi","source":"cvelist"},{"ranges":[{"type":"custom","introduced":"0.15.0","lastAffected":"0.31.0","status":"affected"}],"vendor":"wasmi-labs","product":"wasmi","cpe":"cpe:2.3:a:wasmi-labs:wasmi:0.15.0:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0.15.0","status":"affected","fixed":"0.31.1"}],"ecosystem":"crates.io","package":"wasmi","purl":"pkg:cargo/wasmi","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"0.15.0","fixed":"0.31.1"}],"vendor":"wasmi-labs","product":"wasmi","cpe":"cpe:2.3:a:wasmi-labs:wasmi:*:*:*:*:*:rust:*:*","source":"nvd"}],"references":[{"url":"https://github.com/wasmi-labs/wasmi/security/advisories/GHSA-75jp-vq8x-h4cq","tags":["vendor-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/wasmi-labs/wasmi/commit/f7b3200e9f3dc9e2cbca966cb255c228453c792f","tags":["patch","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/wasmi-labs/wasmi/releases/tag/v0.31.1","tags":["release-notes","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-28123","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/wasmi-labs/wasmi","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2024-08-05T18:07:36.528Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-28123","url":"https://www.cve.org/CVERecord?id=CVE-2024-28123","licence":"CVE Terms of Use","modified":"2024-08-05T18:14:48.975Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-75jp-vq8x-h4cq","url":"https://github.com/advisories/GHSA-75jp-vq8x-h4cq","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:10.185Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-28123","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-28123","licence":"Public domain","modified":"2026-06-17T07:21:00.827Z"}],"updatedAt":"2026-11-25T22:58:37.797Z","epss":{"score":0.00798,"percentile":0.57681,"date":"2026-12-01T12:00:22.000Z"}}