CVE-2024-28123 Wasmi Out-of-bounds Write for host to Wasm calls with more than 128 Parameters
An out-of-bounds write in the Wasmi WebAssembly interpreter allows attackers to cause memory corruption or crashes when host calls exceed parameter limits.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-28123?
CVE-2024-28123 is a high-severity memory corruption vulnerability in wasmi-labs wasmi, published on 8 Mar 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
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.
Weakness: CWE-787
Which versions are affected by CVE-2024-28123?
2 open source packages ship an affected version, including wasmi. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
wasmi crates.io | From 0.15.0 | 0.31.1 |
wasmi crates.io | From 0.15.0 | 0.31.1 |
Products include Wasmi-Labs Wasmi.
How do I fix CVE-2024-28123?
Upgrade wasmi to 0.31.1 or later.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2024-28123 being exploited?
There is no known exploitation of CVE-2024-28123 in the wild and no public exploit code.
Other vulnerabilities in wasmi-labs wasmi
Sources
Also known as GHSA-75jp-vq8x-h4cq.