CVE-2024-32616
High · 7.4CVSS
7.4
EPSS
0.3%
Published
May 14, 2024
CISA due date
—
Cloudanix analysis
A flaw in a common data library can let attackers read parts of a computer's memory or crash programs when they open specially crafted data files.
- Exploitation
- Local Privilege
- Attacker needs
- Local User
- Complexity
- High
- Impact
- Data Exposure
- Component
- Library
- Class
- Memory Corruption
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Heap-based buffer over-read in H5O__dtype_encode_helper allows reading beyond allocated memory during datatype encoding of HDF5 files, potentially disclosing adjacent heap contents or causing crashes.
Why it matters to the business
Applications processing untrusted HDF5 files risk memory disclosure or denial of service, disrupting scientific data workflows and potentially exposing sensitive information in shared environments.
How an attack unfolds
An attacker crafts a malformed HDF5 file that triggers the buffer over-read path in H5O__dtype_encode_helper when the library parses the datatype object; the flaw can be triggered locally without authentication when an affected application opens the file.
How to fix it
Upgrade hdfgroup/hdf5 to the commit 88429b015e29c59de604b0f552001fb7cb7ed5d0 or later release that resolves the over-read; rebuild and redeploy dependent applications.
How to confirm the fix worked
Confirm library version is newer than 1.14.3 and contains commit 88429b015e29c59de604b0f552001fb7cb7ed5d0; test with known-malformed dtype files to verify no over-read occurs.
Typical attack path
- Attacker creates malicious HDF5 file exploiting the dtype encoding path
- Victim application or tool opens the file using vulnerable HDF5 library <= 1.14.3
- H5O__dtype_encode_helper performs the heap over-read during parsing
- Attacker observes leaked memory contents or triggers application crash
How to detect it
Review application logs for crashes or errors during HDF5 file parsing; inspect process memory dumps or core files around H5Odtype.c for evidence of over-read attempts; correlate file opens with subsequent anomalous behavior.
What your security team should do
- Immediately update all HDF5 installations to the fixed commit
- Scan for and replace any embedded or vendored copies of vulnerable HDF5
- Restrict processing of untrusted HDF5 files until patches are applied
- Monitor EPSS and KEV status for changes in exploit availability
The record
HDF5 Library through 1.14.3 contains a heap-based buffer over-read in H5O__dtype_encode_helper in H5Odtype.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