CVE-2024-32605
High · 8.8CVSS
8.8
EPSS
0.9%
Published
May 14, 2024
CISA due date
—
Cloudanix analysis
A bug in a popular scientific data library can let attackers crash programs or peek at hidden memory contents simply by opening a specially made data file.
- Exploitation
- Remote Authenticated
- Attacker needs
- Low Privilege
- Complexity
- Low
- Impact
- Data Exposure
- Component
- Library
- Class
- Memory Corruption
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
The vulnerability permits a heap-based buffer over-read in H5VM_memcpyvv during compact dataset reads, allowing out-of-bounds memory access that can leak adjacent heap contents or trigger crashes.
Why it matters to the business
Scientific and data-processing applications using HDF5 risk crashes or exposure of sensitive in-memory data when handling untrusted files, potentially halting research workflows and compromising dataset confidentiality.
How an attack unfolds
An attacker creates a malicious HDF5 file that triggers the compact read path in H5Dcompact.c, causing the library to perform an over-read via H5VM_memcpyvv and either leak memory or crash the process.
How to fix it
Upgrade hdfgroup/hdf5 to the fixed commit 88429b015e29c59de604b0f552001fb7cb7ed5d0 or a later release; rebuild and redeploy all dependent applications.
How to confirm the fix worked
Confirm the installed HDF5 library reports a version containing commit 88429b015e29c59de604b0f552001fb7cb7ed5d0 and test parsing of compact datasets with both valid and edge-case files.
Typical attack path
- Craft a malicious HDF5 file with malformed compact dataset layout
- Deliver the file to a vulnerable application or service
- Trigger HDF5 parsing of the compact dataset
- Execute the over-read to leak memory or induce denial of service
How to detect it
Review application and system logs for segmentation faults or memory-access errors originating from HDF5 compact read functions when untrusted files are processed.
What your security team should do
- Immediately update all instances of HDF5 to the patched commit
- Inventory and replace vulnerable HDF5 binaries in build pipelines and containers
- Restrict processing of untrusted HDF5 files until patches are applied
The record
HDF5 Library through 1.14.3 has a heap-based buffer over-read in H5VM_memcpyvv in H5VM.c (called from H5D__compact_readvv in H5Dcompact.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
- CVE-2024-32608 [Unknown description] Also affects hdf5
- CVE-2024-33876 HDF5 Library through 1.14.3 has a heap buffer overflow in H5S__point_deserialize in… Also affects hdf5
- CVE-2024-33875 HDF5 Library through 1.14.3 has a heap-based buffer overflow in H5O__layout_encode in… Also affects hdf5
- CVE-2024-33877 HDF5 Library through 1.14.3 has a heap-based buffer overflow in H5T__conv_struct_opt in… Also affects hdf5
- CVE-2024-33873 HDF5 Library through 1.14.3 has a heap-based buffer overflow in H5D__scatter_mem in… Also affects hdf5
- CVE-2024-33874 HDF5 Library through 1.14.3 has a heap buffer overflow in H5O__mtime_new_encode in… Also affects hdf5
- CVE-2024-32624 HDF5 Library through 1.14.3 contains a heap-based buffer overflow in H5T__ref_mem_setnull… Also affects hdf5
- CVE-2024-32619 HDF5 Library through 1.14.3 contains a heap-based buffer overflow in H5T_copy_reopen in… Also affects hdf5