CVE-2024-29162
High · 7.4CVSS
7.4
EPSS
0.2%
Published
May 14, 2024
CISA due date
—
Cloudanix analysis
A flaw in a common data library can let attackers crash programs or take control by feeding them a specially made data file.
- Exploitation
- Local Privilege
- Attacker needs
- Local User
- Complexity
- High
- Impact
- Full Compromise
- Component
- Library
- Class
- Buffer Overflow
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Stack buffer overflow in the H5HG_read function of the HDF5 library allows out-of-bounds writes on the stack when processing specially crafted global heap data.
Why it matters to the business
Applications that parse untrusted HDF5 files may crash or allow arbitrary code execution, disrupting scientific computing, data analytics, and storage workflows that rely on the library.
How an attack unfolds
An attacker crafts a malicious HDF5 file containing oversized global heap data that overflows the stack buffer inside H5HG_read; the file is opened by a vulnerable application, triggering the overflow that can lead to denial of service or remote code execution.
How to fix it
Upgrade HDF5 to a version newer than 1.13.3 and 1.14.2 that contains the fix for the H5HG_read buffer overflow; rebuild dependent applications against the patched library.
How to confirm the fix worked
Confirm installed HDF5 version is newer than 1.13.3/1.14.2; run regression tests with known trigger files and monitor for crashes or memory errors in H5HG_read.
Typical attack path
- Identify target applications that consume HDF5 files
- Craft a malicious HDF5 file triggering overflow in H5HG_read
- Deliver the file via email, download, or shared storage
- Victim application opens the file and executes H5HG_read
- Overflow occurs leading to crash or code execution
How to detect it
Search application and system logs for segmentation faults or crashes originating from HDF5 library functions during file parsing; inspect process dumps for stack corruption near global heap handling.
- H5HG_read
- stack buffer overflow in global heap
- HDF5 heap data parsing crash
What your security team should do
- Prioritize patching HDF5 in all environments that process external files
- Inventory applications and containers using vulnerable HDF5 versions
- Implement file-type sandboxing or validation before parsing untrusted HDF5 content
- Monitor EPSS and exploit maturity updates for this CVE
The record
HDF5 through 1.13.3 and/or 1.14.2 contains a stack buffer overflow in H5HG_read, resulting in 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