CVE-2024-33877
High · 8.8CVSS
8.8
EPSS
0.9%
Published
May 14, 2024
CISA due date
—
Cloudanix analysis
A bug in a widely used data library can let attackers crash or take control of programs that read certain data files, so organizations should update the library promptly to avoid service disruptions or security incidents.
- Exploitation
- Remote Authenticated
- Attacker needs
- Low Privilege
- Complexity
- Low
- Impact
- Full Compromise
- Component
- Library
- Class
- Buffer Overflow
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Heap-based buffer overflow in H5T__conv_struct_opt during optimized structure type conversion allows out-of-bounds writes on the heap when processing malformed HDF5 type definitions.
Why it matters to the business
Applications using HDF5 for scientific data handling risk crashes, data corruption, or remote code execution, disrupting analytics pipelines and potentially compromising systems that ingest untrusted files.
How an attack unfolds
An attacker creates a malicious HDF5 file with specially crafted structure types that trigger excessive buffer allocation during conversion; when a vulnerable application parses the file, the overflow occurs and can be leveraged for code execution or denial of service.
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
Confirm the installed HDF5 library reports a version containing commit 88429b015e29c59de604b0f552001fb7cb7ed5d0; run regression tests exercising structure type conversion on boundary inputs.
Typical attack path
- Craft HDF5 file containing malformed structure type definitions
- Deliver file to target application or service that uses HDF5
- Trigger H5T__conv_struct_opt via normal file parsing or type conversion
- Achieve heap corruption leading to code execution or crash
How to detect it
Monitor application and system logs for segmentation faults or heap-related errors during HDF5 file processing; correlate crashes with file ingestion timestamps and inspect any retained malicious HDF5 files for anomalous structure definitions.
What your security team should do
- Immediately inventory all systems and containers using HDF5 and schedule upgrades to the fixed commit
- Apply network segmentation or file validation controls around services that accept external HDF5 files until patched
- Update vulnerability management policies to treat future HDF5 releases as high-priority library updates
The record
HDF5 Library through 1.14.3 has a heap-based buffer overflow in H5T__conv_struct_opt in H5Tconv.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-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
- CVE-2024-32621 HDF5 Library through 1.14.3 contains a heap-based buffer overflow in H5HG_read in H5HG.c… Also affects hdf5