CVE-2024-29163
High · 7.4CVSS
7.4
EPSS
0.2%
Published
May 14, 2024
CISA due date
—
Cloudanix analysis
A flaw in a widely used data file library can let attackers crash programs or run their own code by feeding it specially made files.
- Exploitation
- Local Privilege
- Attacker needs
- Local User
- Complexity
- High
- Impact
- Full Compromise
- Component
- Library
- Class
- Buffer Overflow
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Medium
What it actually does
Heap buffer overflow in H5T__bit_find corrupts the instruction pointer, enabling denial of service or arbitrary code execution.
Why it matters to the business
Applications processing HDF5 files risk crashes or attacker-controlled code execution on affected systems, potentially disrupting data workflows and requiring urgent updates across dependent scientific and analytics tools.
How an attack unfolds
An attacker crafts a malicious HDF5 file containing specially formed bitfield type information that triggers the overflow in H5T__bit_find during parsing; when the vulnerable library processes the file locally, the corrupted instruction pointer can lead to crashes or code execution.
How to fix it
Upgrade hdfgroup/hdf5 to the fixed commit 88429b015e29c59de604b0f552001fb7cb7ed5d0 or later; rebuild and redeploy all dependent applications; test parsing of untrusted files post-upgrade.
How to confirm the fix worked
Confirm the installed HDF5 library reports a version containing commit 88429b015e29c59de604b0f552001fb7cb7ed5d0; run regression tests with malformed bitfield inputs to verify absence of overflow; monitor for segmentation faults during file processing.
Typical attack path
- Identify or gain access to a system processing untrusted HDF5 files
- Craft a malicious HDF5 dataset with oversized or malformed bitfield metadata targeting H5T__bit_find
- Cause the target application to open or parse the malicious file
- Trigger heap overflow and instruction pointer corruption to achieve denial of service or code execution
How to detect it
Review application and system logs for segmentation faults or crashes occurring during HDF5 file parsing; search for invocations of H5T__bit_find in stack traces or core dumps from affected processes.
- H5T__bit_find
- segmentation fault.*hdf5
- heap buffer overflow.*bit_find
What your security team should do
- Immediately update all HDF5 installations to the patched commit
- Inventory and prioritize patching of high-value systems that process external HDF5 data
- Implement input validation or sandboxing for untrusted HDF5 files until patches are applied
- Add monitoring for unusual crashes in HDF5-dependent processes
The record
HDF5 through 1.14.3 contains a heap buffer overflow in H5T__bit_find, resulting in the corruption of the instruction pointer and causing denial of service or potential code execution.
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