Cloudanix VulnDB

CVE-2024-32618

High · 7.4

CVSS

7.4

EPSS

0.2%

Published

May 14, 2024

CISA due date

—

Cloudanix analysis

Monitor only SSVC: Track

A flaw in a popular data library can let attackers take control of programs that read certain files, putting scientific and data-heavy systems at risk.

Exploitation
Local Privilege
Attacker needs
Local User
Complexity
High
Impact
Full Compromise
Component
Library
Class
Buffer Overflow
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

Heap-based buffer overflow in H5T__get_native_type allows corruption of the instruction pointer during native type handling.

Why it matters to the business

Systems relying on HDF5 for data processing face risk of arbitrary code execution, which can lead to data corruption, unauthorized access, or full system compromise in scientific and analytics workloads.

How an attack unfolds

An attacker supplies a specially crafted HDF5 file that triggers the overflow in H5T__get_native_type when the library resolves native type information, resulting in instruction pointer corruption and potential code execution.

How to fix it

Upgrade hdfgroup/hdf5 to the fixed commit 88429b015e29c59de604b0f552001fb7cb7ed5d0 or a later release that resolves the buffer overflow in H5Tnative.c.

How to confirm the fix worked

Confirm the installed HDF5 library reports a version containing commit 88429b015e29c59de604b0f552001fb7cb7ed5d0; recompile and test with crafted type-definition inputs that previously triggered the overflow.

Typical attack path

  1. Prepare a malicious HDF5 file designed to overflow the buffer during type resolution
  2. Cause the vulnerable application or library to process the file and invoke H5T__get_native_type
  3. Trigger heap corruption that overwrites the instruction pointer
  4. Redirect execution to attacker-controlled code

How to detect it

Monitor process crashes or segmentation faults when applications handle HDF5 files; inspect library call stacks for references to H5T__get_native_type and review file-processing logs for unexpected type-resolution activity.

What your security team should do

  • Immediately update all HDF5 installations to the commit containing the fix
  • Inventory applications and containers that depend on HDF5 and schedule upgrades
  • Add HDF5 version checks to build and deployment pipelines

The record

HDF5 Library through 1.14.3 contains a heap-based buffer overflow in H5T__get_native_type in H5Tnative.c, resulting in the corruption of the instruction 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