Cloudanix VulnDB

CVE-2024-32615

Critical · 9.8

CVSS

9.8

EPSS

1.1%

Published

May 14, 2024

CISA due date

—

Cloudanix analysis

Monitor only SSVC: Track

A bug in a popular data-file library lets attackers take over computers when those computers open specially made data files.

Exploitation
Remote Unauthenticated
Attacker needs
None
Complexity
Low
Impact
Full Compromise
Component
Library
Class
Buffer Overflow
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

Heap-based buffer overflow in H5Z__nbit_decompress_one_byte caused by dereference of an uninitialized pointer, enabling memory corruption during N-bit decompression of HDF5 datasets.

Why it matters to the business

Systems that parse untrusted HDF5 files risk remote code execution or denial of service; organizations relying on scientific data pipelines face potential compromise of compute clusters and loss of research data integrity.

How an attack unfolds

An attacker supplies a crafted HDF5 file containing a malicious N-bit compressed dataset; when the library opens the file and calls H5Z__nbit_decompress_one_byte, the uninitialized pointer leads to an out-of-bounds write that can be leveraged for arbitrary code execution.

How to fix it

Upgrade hdfgroup/hdf5 to the commit 88429b015e29c59de604b0f552001fb7cb7ed5d0 or later; rebuild and redeploy all dependent applications; disable N-bit compression filter if immediate upgrade is not feasible.

How to confirm the fix worked

Confirm the installed library reports a build containing commit 88429b015e29c59de604b0f552001fb7cb7ed5d0; run regression tests with known N-bit compressed datasets; monitor for crashes or sanitizer reports on decompression paths.

Typical attack path

  1. Deliver malicious HDF5 file via email, web download, or shared storage
  2. Victim application or script opens the file with the vulnerable HDF5 library
  3. Library invokes N-bit filter during dataset decompression
  4. Uninitialized pointer triggers heap write outside allocated bounds
  5. Attacker-controlled data overwrites function pointers or heap metadata to achieve code execution

How to detect it

Search application and system logs for segmentation faults or heap corruption messages originating from the HDF5 library during file open or dataset read operations; inspect core dumps for references to H5Znbit.c; correlate with file-access timestamps of suspicious HDF5 files.

What your security team should do

  • Prioritize patching any internet-facing or multi-tenant services that accept HDF5 uploads within 48 hours
  • Inventory all internal tools and pipelines that link against HDF5 and schedule upgrades by priority of data sensitivity
  • Add file-type sandboxing or content-disarm-and-reconstruction for HDF5 ingestion until patches are applied
  • Update vulnerability scanners and SBOM tools with the fixed commit hash

The record

HDF5 Library through 1.14.3 contains a heap-based buffer overflow in H5Z__nbit_decompress_one_byte in H5Znbit.c, caused by the earlier use of an initialized pointer.

Affected packages

Ecosystem Package Introduced Fixed
Debian:11 hdf5 0 No fix
Debian:12 hdf5 0 No fix
Debian:13 hdf5 0 No fix
Debian:13 hdf5 0 1.14.5+repack-1
Ubuntu:20.04:LTS hdf5 0 No fix
Ubuntu:22.04:LTS hdf5 0 No fix
Ubuntu:24.04:LTS hdf5 0 No fix
Ubuntu:24.10 hdf5 0 No fix
Ubuntu:25.04 hdf5 0 No fix
Ubuntu:25.10 hdf5 0 No fix
Ubuntu:Pro:14.04:LTS hdf5 0 No fix
Ubuntu:Pro:16.04:LTS hdf5 0 No fix
Ubuntu:Pro:18.04:LTS hdf5 0 No fix
Ubuntu:Pro:20.04:LTS hdf5 0 No fix

Related vulnerabilities