Intel

AIKIDO-2026-713161

h5wasm is vulnerable to Heap-based Buffer Overflow

Heap-based Buffer Overflow Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published 5 days ago

66

Medium Risk

This Affects:

JSh5wasm
0.7.6 - 0.10.2
Fixed in 0.10.3
Are you affected? Scan for Free

TL;DR

A specially crafted H5T_VLEN dataset can cause Dataset.slice() to corrupt heap memory and abort the WASM runtime when slicing datasets with more than one element. The issue happens because the read path allocates memory only for the selected slice, but the reclaim logic mistakenly treats the buffer as if it contained the full dataset extent, causing invalid frees beyond the allocated buffer. Whole-dataset reads are not affected because their buffer size matches the full dataset. An attacker might exploit this by supplying a malicious HDF5 file containing a variable-length dataset and triggering a slice operation, causing a denial of service through runtime aborts and potentially opening the door to memory corruption impacts depending on allocator state.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

h5wasm is vulnerable to Heap-based Buffer Overflow in versions 0.7.6 - 0.10.2.

How to fix this

Upgrade the h5wasm library to the patch version.