CVE-2024-32609
High · 7.5CVSS
7.5
EPSS
0.8%
Published
May 14, 2024
CISA due date
—
Cloudanix analysis
A flaw in a common data library can let attackers read private information from a program's memory when the program processes certain files or network data.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- Low
- Impact
- Data Exposure
- Component
- Library
- Class
- Memory Corruption
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
The flaw triggers excessive stack consumption inside H5E_printf_stack during error formatting, enabling an attacker to force stack overflow conditions that result in disclosure of memory contents.
Why it matters to the business
Systems processing untrusted HDF5 files or network inputs risk exposure of sensitive internal data, increasing the chance of data breaches and regulatory penalties without immediate service disruption.
How an attack unfolds
An attacker supplies a specially crafted HDF5 dataset or triggers error paths over the network that cause repeated or deeply nested calls to the error-printing routine, overflowing the stack and allowing memory contents to be read.
How to fix it
Upgrade the HDF5 library dependency to a version containing commit 2c2c243964dda97a82eddb3804e39f9665c574bb or later; rebuild and redeploy affected applications such as openitcockpit after the library update.
How to confirm the fix worked
Confirm the running binary links against a patched HDF5 build, re-execute error-triggering test cases, and verify that stack usage remains bounded under the same inputs that previously caused consumption.
Typical attack path
- Identify a reachable service or application that consumes HDF5 data or invokes the library error paths
- Craft input that forces error conditions leading to repeated calls into H5E_printf_stack
- Deliver the input via network or file to trigger stack growth
- Observe or exfiltrate memory contents disclosed by the overflow
How to detect it
Monitor process logs and crash dumps for abnormal stack growth or segmentation faults originating from HDF5 error routines; correlate with inbound HDF5 file uploads or API calls that produce error conditions.
What your security team should do
- Prioritize patching the HDF5 dependency within the next maintenance window given the network-reachable attack surface
- Add the fixed commit hash to dependency scanning policies to prevent regression
- Review logging and error-handling paths in applications using HDF5 to reduce unnecessary error printing under load
The record
HDF5 Library through 1.14.3 allows stack consumption in the function H5E_printf_stack in H5Eint.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