HDF5 Heap-Based Buffer Overflow Vulnerability in Cache Reconstruction Function

Vulnerability

A critical heap-based buffer overflow vulnerability has been identified in HDF5 versions through 1.14.6. The issue arises in the function H5C__reconstruct_cache_entry within H5Cimage.c, where improper handling of cache entry structures leads to out-of-bounds memory access. This vulnerability requires local exploitation.

Impact

Exploitation of this vulnerability causes a heap-based buffer overflow, which can lead to memory corruption and potentially allow for arbitrary code execution.

Reproduction

The vulnerability can be reproduced by compiling HDF5 with AddressSanitizer enabled, using Clang as the compiler. After compiling the library, a proof-of-concept fuzzer can be used to trigger the vulnerability by opening a crafted dataset that exploits the buffer overflow during cache entry reconstruction.

Added: Jun 19, 2025, 4:17 PM
Updated: Jun 19, 2025, 4:17 PM

Vulnerability Rating

Custom Algorithm
spread
5.4
impact
10.0
exploitability
4.6
remediation
0.0
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.