Cloudanix VulnDB

CVE-2024-32616

High · 7.4

CVSS

7.4

EPSS

0.3%

Published

May 14, 2024

CISA due date

—

Cloudanix analysis

Monitor only SSVC: Track

A flaw in a common data library can let attackers read parts of a computer's memory or crash programs when they open specially crafted data files.

Exploitation
Local Privilege
Attacker needs
Local User
Complexity
High
Impact
Data Exposure
Component
Library
Class
Memory Corruption
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

Heap-based buffer over-read in H5O__dtype_encode_helper allows reading beyond allocated memory during datatype encoding of HDF5 files, potentially disclosing adjacent heap contents or causing crashes.

Why it matters to the business

Applications processing untrusted HDF5 files risk memory disclosure or denial of service, disrupting scientific data workflows and potentially exposing sensitive information in shared environments.

How an attack unfolds

An attacker crafts a malformed HDF5 file that triggers the buffer over-read path in H5O__dtype_encode_helper when the library parses the datatype object; the flaw can be triggered locally without authentication when an affected application opens the file.

How to fix it

Upgrade hdfgroup/hdf5 to the commit 88429b015e29c59de604b0f552001fb7cb7ed5d0 or later release that resolves the over-read; rebuild and redeploy dependent applications.

How to confirm the fix worked

Confirm library version is newer than 1.14.3 and contains commit 88429b015e29c59de604b0f552001fb7cb7ed5d0; test with known-malformed dtype files to verify no over-read occurs.

Typical attack path

  1. Attacker creates malicious HDF5 file exploiting the dtype encoding path
  2. Victim application or tool opens the file using vulnerable HDF5 library <= 1.14.3
  3. H5O__dtype_encode_helper performs the heap over-read during parsing
  4. Attacker observes leaked memory contents or triggers application crash

How to detect it

Review application logs for crashes or errors during HDF5 file parsing; inspect process memory dumps or core files around H5Odtype.c for evidence of over-read attempts; correlate file opens with subsequent anomalous behavior.

What your security team should do

  • Immediately update all HDF5 installations to the fixed commit
  • Scan for and replace any embedded or vendored copies of vulnerable HDF5
  • Restrict processing of untrusted HDF5 files until patches are applied
  • Monitor EPSS and KEV status for changes in exploit availability

The record

HDF5 Library through 1.14.3 contains a heap-based buffer over-read in H5O__dtype_encode_helper in H5Odtype.c.

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