CVE-2024-28123 Wasmi Out-of-bounds Write for host to Wasm calls with more than 128 Parameters

High 7.3 Published Updated

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.

PackageAffectedFixed in
wasmi crates.ioFrom 0.15.00.31.1
wasmi crates.ioFrom 0.15.00.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.

Sources

Also known as GHSA-75jp-vq8x-h4cq.

Is CVE-2024-28123 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free