CVE-2024-32617
NoneCVSS
—
EPSS
0.8%
Published
May 14, 2024
CISA due date
—
Cloudanix analysis
A bug in a popular scientific data library can make programs crash or leak information when they open certain data files.
- Exploitation
- Requires User Interaction
- Attacker needs
- Local User
- Complexity
- Moderate
- Impact
- Data Exposure
- Component
- Library
- Class
- Memory Corruption
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Heap-based buffer over-read triggered by unsafe strdup call in H5MM_xstrdup during link/group entry processing in HDF5 files.
Why it matters to the business
Applications that read HDF5 files from untrusted sources may crash or disclose adjacent memory contents, disrupting data analysis workflows and potentially exposing sensitive information.
How an attack unfolds
An attacker supplies a specially crafted HDF5 file containing a malformed group link entry; when the library parses it via H5G__ent_to_link, the unsafe strdup triggers an out-of-bounds read on the heap.
How to fix it
Upgrade hdfgroup/hdf5 to the commit 88429b015e29c59de604b0f552001fb7cb7ed5d0 or later; rebuild and redeploy all dependent applications.
How to confirm the fix worked
Confirm the installed library reports a commit newer than 88429b015e29c59de604b0f552001fb7cb7ed5d0; run regression tests with previously crashing HDF5 test files.
Typical attack path
- Attacker creates HDF5 file with oversized or malformed link entry metadata
- Victim application opens the file using an affected HDF5 library version
- H5G__ent_to_link invokes H5MM_xstrdup on attacker-controlled data
- Over-read occurs, potentially crashing the process or leaking memory
How to detect it
Monitor application logs and crash reports for segmentation faults or memory errors during HDF5 file parsing; correlate with file opens from external or untrusted sources.
What your security team should do
- Prioritize patching all HDF5-dependent software within the next maintenance window
- Scan build pipelines and containers for versions through 1.14.3
- Add HDF5 upgrade to the next scheduled dependency audit
The record
HDF5 Library through 1.14.3 contains a heap-based buffer over-read caused by the unsafe use of strdup in H5MM_xstrdup in H5MM.c (called from H5G__ent_to_link in H5Glink.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