WebAssembly Wabt Resource Consumption Vulnerability in Binary Reader Interpreter

Vulnerability

A resource consumption vulnerability has been identified in WebAssembly Wabt versions through 1.0.37. The issue arises in the function 'OnDataCount' within 'src/interp/binary-reader-interp.cc', where improper management of data count leads to excessive memory allocation. This vulnerability requires local exploitation and can cause a denial-of-service condition by exhausting available system resources.

Impact

Exploitation of this vulnerability leads to a denial-of-service condition, causing the application to run out of memory and potentially terminate prematurely.

Reproduction

The vulnerability can be reproduced by compiling Wabt with AddressSanitizer enabled, which helps detect memory allocation issues. After building Wabt with the appropriate flags, the 'read_binary_interp_fuzzer' can be created and executed using a crafted WebAssembly file that triggers the 'OnDataCount' function. This process involves downloading the fuzzing harness from the Wabt repository, compiling it with Clang, and then running it with a specific input file that causes the out-of-memory error.

Added: Jun 19, 2025, 7:20 PM
Updated: Jun 19, 2025, 7:20 PM

Vulnerability Rating

Custom Algorithm
spread
2.4
impact
2.5
exploitability
6.0
remediation
7.7
relevance
0.2
threat
6.4
urgency
2.9
incentive
1.7

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.