CVE-2024-28123
Rust vulnerability analysis and mitigation

Overview

Wasmi, an efficient and lightweight WebAssembly interpreter focused on constrained and embedded systems, was found to contain an Out-of-bounds Buffer Write vulnerability (CVE-2024-28123). The vulnerability was discovered in versions 0.15.0 through 0.31.0 and was patched in version 0.31.1. The issue occurs when the host calls or resumes a Wasm function with more parameters than the default limit of 128, causing it to surpass the stack value. Importantly, this vulnerability only affects calls from host to Wasm, not Wasm to Wasm calls (GHSA Advisory).

Technical details

The vulnerability is classified as Critical and is identified as CWE-787 (Out-of-bounds Write). The issue manifests when calling or resuming Wasm functions from the host side with more than 128 parameters, leading to a buffer overflow condition. The CVSS v3.1 score is 7.3 (High) with the vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L (NVD).

Impact

The vulnerability could potentially be exploited when external users are allowed to call Wasm functions with more than 128 parameters from the host side, representing a serious attack vector. However, major systems like Polkadot's pallet_contracts are not affected as they implement restrictions on the number of parameters in host to Wasm function calls (Release Notes).

Exploitability

The vulnerability is exploitable in scenarios where users can call Wasm functions with more than 128 parameters from the host side. However, this is considered a rare scenario as functions with such a high number of parameters are uncommon. The bug specifically affects host to Wasm function calls and does not impact Wasm to Wasm calls (GHSA Advisory).

Mitigation and workarounds

The vulnerability has been patched in version 0.31.1. Users running versions between 0.15.0 and 0.31.0 are strongly advised to upgrade to the patched version. As a workaround, users can ensure that no more than 128 parameters are passed in calls from the host to a Wasm function (GHSA Advisory, Release Notes).

Community reactions

The vulnerability was responsibly disclosed by the Stellar Development Foundation, leading to a prompt patch release. Analysis of dependent systems including Polkadot systems, Pallet Contracts, Parity Signer, and Smoldot revealed that these systems were not affected due to their implementation of limited parameter counts in host to Wasm function calls (GHSA Advisory).

Additional resources


SourceThis report was generated using AI

Related Rust vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-54788HIGH7.5
  • Rust logoRust
  • datadog-opentelemetry
NoYesAug 28, 2026
RUSTSEC-2026-0278HIGH7.3
  • Rust logoRust
  • zbus_polkit
NoYesAug 31, 2026
GHSA-2vh6-hw4j-32wwMEDIUM6.5
  • Rust logoRust
  • gix-packetline
NoYesAug 28, 2026
CVE-2026-53600MEDIUM6.3
  • Rust logoRust
  • zed
NoYesSep 02, 2026
RUSTSEC-2026-0272NONEN/A
  • Rust logoRust
  • stack_dst
NoYesAug 27, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management