CVE-2024-32612
High · 7.4CVSS
7.4
EPSS
0.3%
Published
May 14, 2024
CISA due date
—
Cloudanix analysis
A bug in a popular data-file library can let attackers crash or take over programs that open certain specially made files on the same computer.
- Exploitation
- Local Privilege
- Attacker needs
- Local User
- Complexity
- High
- Impact
- Other
- Component
- Library
- Class
- Memory Corruption
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Heap-based buffer over-read in H5HL__fl_deserialize within H5HLcache.c corrupts the instruction pointer during deserialization of HDF5 files.
Why it matters to the business
Systems processing HDF5 scientific or data files may experience application crashes or potential remote code execution when handling untrusted inputs, disrupting data analysis workflows and research pipelines that depend on this library.
How an attack unfolds
An attacker supplies a specially crafted HDF5 file containing malformed heap data; when the library deserializes it via H5HL__fl_deserialize, the over-read occurs and corrupts the instruction pointer, potentially allowing control-flow hijacking on the local system.
How to fix it
Upgrade hdfgroup/hdf5 to the commit 88429b015e29c59de604b0f552001fb7cb7ed5d0 or later; rebuild and redeploy all dependent applications after the update.
How to confirm the fix worked
Verify the installed library version or commit hash matches or exceeds 88429b015e29c59de604b0f552001fb7cb7ed5d0; run regression tests with malformed HDF5 inputs and confirm absence of crashes or memory errors using sanitizers.
Typical attack path
- Identify or create a target application that uses the vulnerable HDF5 library to open files
- Craft a malicious HDF5 file that triggers the buffer over-read in H5HLcache.c
- Cause the victim process to open the file locally
- Trigger instruction pointer corruption to achieve crash or code execution
How to detect it
Monitor process crashes or segmentation faults in applications linked to HDF5 when opening files; review system logs and core dumps for signs of memory corruption during H5HL deserialization.
What your security team should do
- Prioritize patching all HDF5 installations to the fixed commit within standard change windows
- Inventory applications and pipelines that link against HDF5 and schedule updates
- Implement file-type sandboxing or validation for untrusted HDF5 inputs until patches are applied
The record
HDF5 Library through 1.14.3 contains a heap-based buffer over-read in H5HL__fl_deserialize in H5HLcache.c, resulting in the corruption of the instruction pointer, a different vulnerability than CVE-2024-32613.
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