The Hdf Group
Monthly
Heap-based buffer overflow in HDF5 (The HDF Group) before 2.2.0 lets an attacker who supplies a crafted HDF5 file corrupt heap memory in any application linked against the library, causing a crash and potentially achieving arbitrary code execution. The flaw lives in H5VM_array_fill() (src/H5VM.c) and is triggered when a dataset's unallocated/unwritten chunks are read: H5D__fill_init() derives the fill-value buffer from datatype and dataspace metadata stored in the file, and when that metadata is inconsistent with the buffer's allocated size the write overruns the buffer with attacker-controlled fill-value bytes. Exploitation is not network-reachable - it requires a victim to open or automatically process the malicious file (AV:L, UI:P per CVSS 4.0; UI:R in the 3.1 assessment), so risk is highest in data-ingest, HPC and ML pipelines that parse untrusted HDF5 inputs without an interactive user; no public exploit code has been identified at time of analysis and there is no KEV listing, though the CVSS 4.0 base score of 8.5 reflects high confidentiality, integrity and availability impact.
NULL pointer dereference in HDF5's H5Pget_fill_value function (all versions before 2.1.1) enables denial of service by processing a specially crafted HDF5 dataset file. The flaw arises when a fill value message (format version 1 or 2) carries the 'defined' flag alongside a negative size field - a malformed state the library fails to normalize to its internal 'undefined' sentinel - allowing a NULL datatype pointer to reach H5T_path_find and crash the process. No public exploit identified at time of analysis; the CVSS 4.0 score of 8.2 reflects high availability impact, but the local file-parsing vector and user interaction requirement meaningfully constrain real-world exposure.
Opening and traversing a crafted HDF5 file can crash the application because H5HL_unprotect() in HDF5 through 2.2.0 may pass a NULL local-heap pointer to H5AC_unpin_entry(). The bug is a CWE-476 NULL pointer dereference: if the metadata cache destroys a corrupted local heap entry and H5HL__prfx_dest() clears heap->prfx or heap->dblk, the final unprotect has nothing to unpin, causing an assertion failure in debug builds and a crash in release builds. Impact is limited to local denial of service with user interaction and no confidentiality or integrity loss; the supplied CVSS 4.0 vector has E:P (proof-of-concept maturity), but no CISA KEV listing or confirmed working exploit code was provided.
HDF5 through 2.2.0 reads past the end of the heap buffer holding an external link's user data when that link is traversed, because the default traversal callback H5L__extern_traverse() located the target file name and object path with strlen() without ever validating the payload against its recorded size. The flaw is reachable in default operation and requires a crafted HDF5 file whose external link data is not NULL-terminated or is too short to hold both strings; it triggers when a user or application opens an object through that link (CVSS 4.0 6.9, AV:L/PR:N/UI:P, availability high, confidentiality low). No public exploit code was identified at time of analysis and there is no KEV entry; the practical outcome is a crash/denial of service, with the additional possibility that adjacent heap bytes get folded into the file name or object path the library then attempts to open, and the upstream fix is the pull request referenced below (no released patched version independently confirmed).
Heap buffer over-read in the HDF5 library through 2.2.0 lets a crafted HDF5 file push an object-header message body past the end of its decoded chunk, so opening the file through H5Fopen() can terminate the process or disclose a small amount of process memory through a decode callback such as H5O__mtime_new_decode(). The flaw is in H5O__chunk_deserialize(), which validates the declared message size before the remainder of the message header (flags and, for version 2 object headers, the optional creation index) has been consumed, leaving up to four bytes of unchecked slack. Impact is bounded by the assessed CVSS:3.1 vector AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:L - exploitation is local and requires a victim to open a malicious file, with only low confidentiality and availability consequences and no integrity or code-execution impact; there is no CISA KEV entry, the CVSS 4.0 vector carries an exploit-maturity value of proof-of-concept only, and the priority decision is monitor. The vendor fix is an upstream pull request (HDFGroup/hdf5#6589) that closes issue #6401.
HDF5 through 2.2.0, when compiled with szip support, reads past the end of a chunk buffer while decoding a szip-compressed chunk in H5Z__filter_szip(): the function subtracts the 4-byte uncompressed-length header from the chunk length without first verifying the chunk is longer than that header, so a truncated or corrupted chunk record makes the size_t subtraction wrap to a very large value and the decompressor reads far beyond the stored data, crashing the process. An attacker triggers it by getting a user or application to read a dataset from a crafted HDF5 file, so the attack is local (AV:L) and requires the victim to open the file (UI:R / UI:P), with impact confined to denial of service (assessed CVSS 3.1 AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H; CVSS 4.0 4.7). Only szip-enabled builds (libaec or the szip library) are affected, the CVE is not in CISA KEV, and the CVSS 4.0 vector records Proof-of-Concept-level exploit maturity (E:P) while no verified working exploit code is identified in the available sources; the issue is rated medium severity and prioritized 'this_month' rather than as an emergency.
HDF5 through 2.2.0 discloses process heap memory when an application opens and reads a dataset that uses the scaleoffset filter from a crafted file whose filtered chunk record is truncated. The decode path in H5Z__filter_scaleoffset() validates reads against the allocated size of the chunk buffer instead of the number of bytes actually stored, and because H5D__chunk_lock() sizes that buffer to the larger of the stored and unfiltered chunk sizes while filling only the stored bytes, the truncated chunk passes the bounds check and the uninitialized remainder is decompressed and returned as dataset data. The vulnerability is local (CVSS:3.1/AV:L/AC:L/PR:N/UI:R), requires the victim to open and read the crafted file, and is limited to confidentiality impact with no code execution, modification, or crash; an upstream fix exists in PR 6585 but no released patched version is confirmed, and no public exploit has been identified.
Uncontrolled recursion in HDF5 (through 2.2.0) lets a crafted HDF5 file crash an application that inspects group metadata: a version 1 B-tree whose child pointer refers back to an already-cached node - such as a node pointing to itself - drives H5B__iterate_helper() into unbounded recursion and exhausts the stack. The victim must open the malicious file and the application must reach the vulnerable path through H5Gget_info() or H5Gget_num_objs() on a group, which routes via H5G__obj_info() and H5G__stab_count() into H5B_iterate(); no privileges are required, but user interaction to open the file is. Impact is availability-only (process crash), with no code execution or data disclosure reported, and no public exploit was identified at time of analysis; the disclosed reference is the upstream issue report rather than working exploit code.
Heap-based buffer over-read in the HDF5 library's scale-offset filter decoder (H5Z__filter_scaleoffset) allows a local, unauthenticated attacker to cause a denial of service by supplying a crafted HDF5 file that a victim opens. The flaw occurs when the filter's stored minimum-bits parameter equals the datatype's full precision and the decoder attempts to copy d_nelmts * size bytes from a compressed chunk that is too short, triggering an out-of-bounds read and application crash. The vendor CVSS 4.0 vector (6.8 Medium) rates this as an availability-only impact with no confidentiality or integrity effect; no public exploit code has been identified, and the fix is available as an upstream pull request but not yet confirmed in a tagged release.
Heap use-after-free in the HDF5 library (The HDF Group, all versions before 2.3.0) is triggered when an application such as h5dump reads a dataset whose compound datatype contains floating-point members, allowing a crafted .h5 file to crash the parsing process and, depending on heap layout and allocator behaviour, potentially corrupt memory further. Exploitation requires the victim to open a malicious file locally (local vector, mandatory user interaction, no authentication needed), so it is not remotely reachable on its own. No public exploit code has been identified at time of analysis and the issue is not in CISA KEV; the vendor's own CVSS 4.0 base of 4.6 aligns with the independent assessment that the reliably demonstrated impact is a crash rather than proven code execution.
Integer underflow in HDF5 through 2.3.0 allows denial of service when processing Fletcher32-filtered datasets with chunk sizes smaller than 4 bytes. The `H5Z__filter_fletcher32` function in `H5Zfletcher32.c` subtracts the 4-byte checksum length from the input buffer size using an unsigned `size_t` without first verifying the buffer meets the minimum size, causing the result to wrap near `SIZE_MAX` and triggering a massively out-of-bounds read inside `H5_checksum_fletcher32`. Any application or pipeline calling `H5Dread` on a crafted HDF5 file - including the standard `h5ls` and `h5dump` utilities - can be crashed; no public exploit code has been identified and this vulnerability is not in CISA KEV.
Out-of-bounds heap read in HDF5's N-Bit filter decompression affects all versions through 2.3.0, allowing an attacker who can deliver a crafted HDF5 file to a user or automated pipeline to trigger application crashes and, in constrained cases, leak adjacent heap memory contents into decompressed dataset values. The three affected functions - H5Z__nbit_decompress_one_byte, H5Z__nbit_decompress_one_nooptype, and H5Z__nbit_decompress_one_atomic - advance a buffer read index without bounding it against the actual compressed chunk size, exploitable whenever H5Dread is invoked, including via common tools like h5ls and h5repack. No public exploit code has been identified at time of analysis, and this vulnerability is not listed in the CISA KEV catalog.
Null pointer dereference in HDF5 through 2.3.0 allows denial of service when a user opens a crafted file containing a malformed N-Bit filter pipeline message with zero client-data values. The function H5Z__filter_nbit unconditionally reads cd_values[0] through cd_values[4] before checking whether the array is non-NULL or contains at least 5 elements, crashing any application - including the bundled h5ls and h5repack tools - that calls H5Dread on such a dataset. No active exploitation has been confirmed (not listed in CISA KEV) and no EPSS score was available, but the fix diff publicly exposes the exact crash path, lowering the barrier for proof-of-concept development.
HDF5 library through version 2.3.0 crashes with a divide-by-zero when a process opens a crafted file containing mismatched chunk-layout and dataspace dimensionality. The missing rank validation in H5O__layout_decode allows the corrupt metadata to propagate unchecked to H5S__hyper_iter_get_seq_list, where the invalid value causes integer division by zero and application termination. Tools that automatically consume externally-supplied HDF5 files - such as the bundled h5repack utility - are the primary exposure surface; no public exploit code or confirmed active exploitation has been identified at time of analysis.
Untrusted pointer dereference in HDF5's h5dump utility (before version 2.1.1) causes a denial of service when processing specially crafted HDF5 files containing variable-length string datasets with more than one element rendered in binary mode. The stride calculation for per-element offsets becomes corrupted, causing subsequent elements to be read from misaligned memory addresses and dereferenced as pointers, crashing the tool. No public exploit code exists at time of analysis, and no active exploitation has been confirmed - the local attack vector and DoS-only impact make this a low operational priority for most environments.
Denial of service in HDF5 caused by a NULL pointer dereference when processing a crafted HDF5 file with an invalid variable-length datatype attribute. The vulnerability affects all versions of HDF5 and can be triggered by a user opening a malicious file, leading to application crash. Publicly available exploit code exists per CVSS metric.
Double free in HDF5 library allows a local attacker to cause a denial of service via a crafted file with an oversized chunk size. Processing the file with h5repack triggers an application abort, with no confidentiality or integrity impact. No active exploitation or public exploit code has been confirmed.
Heap-based buffer overflow in HDF5 through 2.1.1 enables attackers to crash applications and potentially corrupt data by providing a crafted HDF5 file. The flaw lies in the shared‑message list‑index deserializer (SOHM), allowing out‑of‑bounds heap reads and writes when a num_messages field exceeds the declared list_max. No active exploitation has been reported, but the issue is publicly documented and a proof‑of‑concept may exist in the linked issue.
Heap-based buffer overflow in HDF5 (The HDF Group) before 2.2.0 lets an attacker who supplies a crafted HDF5 file corrupt heap memory in any application linked against the library, causing a crash and potentially achieving arbitrary code execution. The flaw lives in H5VM_array_fill() (src/H5VM.c) and is triggered when a dataset's unallocated/unwritten chunks are read: H5D__fill_init() derives the fill-value buffer from datatype and dataspace metadata stored in the file, and when that metadata is inconsistent with the buffer's allocated size the write overruns the buffer with attacker-controlled fill-value bytes. Exploitation is not network-reachable - it requires a victim to open or automatically process the malicious file (AV:L, UI:P per CVSS 4.0; UI:R in the 3.1 assessment), so risk is highest in data-ingest, HPC and ML pipelines that parse untrusted HDF5 inputs without an interactive user; no public exploit code has been identified at time of analysis and there is no KEV listing, though the CVSS 4.0 base score of 8.5 reflects high confidentiality, integrity and availability impact.
NULL pointer dereference in HDF5's H5Pget_fill_value function (all versions before 2.1.1) enables denial of service by processing a specially crafted HDF5 dataset file. The flaw arises when a fill value message (format version 1 or 2) carries the 'defined' flag alongside a negative size field - a malformed state the library fails to normalize to its internal 'undefined' sentinel - allowing a NULL datatype pointer to reach H5T_path_find and crash the process. No public exploit identified at time of analysis; the CVSS 4.0 score of 8.2 reflects high availability impact, but the local file-parsing vector and user interaction requirement meaningfully constrain real-world exposure.
Opening and traversing a crafted HDF5 file can crash the application because H5HL_unprotect() in HDF5 through 2.2.0 may pass a NULL local-heap pointer to H5AC_unpin_entry(). The bug is a CWE-476 NULL pointer dereference: if the metadata cache destroys a corrupted local heap entry and H5HL__prfx_dest() clears heap->prfx or heap->dblk, the final unprotect has nothing to unpin, causing an assertion failure in debug builds and a crash in release builds. Impact is limited to local denial of service with user interaction and no confidentiality or integrity loss; the supplied CVSS 4.0 vector has E:P (proof-of-concept maturity), but no CISA KEV listing or confirmed working exploit code was provided.
HDF5 through 2.2.0 reads past the end of the heap buffer holding an external link's user data when that link is traversed, because the default traversal callback H5L__extern_traverse() located the target file name and object path with strlen() without ever validating the payload against its recorded size. The flaw is reachable in default operation and requires a crafted HDF5 file whose external link data is not NULL-terminated or is too short to hold both strings; it triggers when a user or application opens an object through that link (CVSS 4.0 6.9, AV:L/PR:N/UI:P, availability high, confidentiality low). No public exploit code was identified at time of analysis and there is no KEV entry; the practical outcome is a crash/denial of service, with the additional possibility that adjacent heap bytes get folded into the file name or object path the library then attempts to open, and the upstream fix is the pull request referenced below (no released patched version independently confirmed).
Heap buffer over-read in the HDF5 library through 2.2.0 lets a crafted HDF5 file push an object-header message body past the end of its decoded chunk, so opening the file through H5Fopen() can terminate the process or disclose a small amount of process memory through a decode callback such as H5O__mtime_new_decode(). The flaw is in H5O__chunk_deserialize(), which validates the declared message size before the remainder of the message header (flags and, for version 2 object headers, the optional creation index) has been consumed, leaving up to four bytes of unchecked slack. Impact is bounded by the assessed CVSS:3.1 vector AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:L - exploitation is local and requires a victim to open a malicious file, with only low confidentiality and availability consequences and no integrity or code-execution impact; there is no CISA KEV entry, the CVSS 4.0 vector carries an exploit-maturity value of proof-of-concept only, and the priority decision is monitor. The vendor fix is an upstream pull request (HDFGroup/hdf5#6589) that closes issue #6401.
HDF5 through 2.2.0, when compiled with szip support, reads past the end of a chunk buffer while decoding a szip-compressed chunk in H5Z__filter_szip(): the function subtracts the 4-byte uncompressed-length header from the chunk length without first verifying the chunk is longer than that header, so a truncated or corrupted chunk record makes the size_t subtraction wrap to a very large value and the decompressor reads far beyond the stored data, crashing the process. An attacker triggers it by getting a user or application to read a dataset from a crafted HDF5 file, so the attack is local (AV:L) and requires the victim to open the file (UI:R / UI:P), with impact confined to denial of service (assessed CVSS 3.1 AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H; CVSS 4.0 4.7). Only szip-enabled builds (libaec or the szip library) are affected, the CVE is not in CISA KEV, and the CVSS 4.0 vector records Proof-of-Concept-level exploit maturity (E:P) while no verified working exploit code is identified in the available sources; the issue is rated medium severity and prioritized 'this_month' rather than as an emergency.
HDF5 through 2.2.0 discloses process heap memory when an application opens and reads a dataset that uses the scaleoffset filter from a crafted file whose filtered chunk record is truncated. The decode path in H5Z__filter_scaleoffset() validates reads against the allocated size of the chunk buffer instead of the number of bytes actually stored, and because H5D__chunk_lock() sizes that buffer to the larger of the stored and unfiltered chunk sizes while filling only the stored bytes, the truncated chunk passes the bounds check and the uninitialized remainder is decompressed and returned as dataset data. The vulnerability is local (CVSS:3.1/AV:L/AC:L/PR:N/UI:R), requires the victim to open and read the crafted file, and is limited to confidentiality impact with no code execution, modification, or crash; an upstream fix exists in PR 6585 but no released patched version is confirmed, and no public exploit has been identified.
Uncontrolled recursion in HDF5 (through 2.2.0) lets a crafted HDF5 file crash an application that inspects group metadata: a version 1 B-tree whose child pointer refers back to an already-cached node - such as a node pointing to itself - drives H5B__iterate_helper() into unbounded recursion and exhausts the stack. The victim must open the malicious file and the application must reach the vulnerable path through H5Gget_info() or H5Gget_num_objs() on a group, which routes via H5G__obj_info() and H5G__stab_count() into H5B_iterate(); no privileges are required, but user interaction to open the file is. Impact is availability-only (process crash), with no code execution or data disclosure reported, and no public exploit was identified at time of analysis; the disclosed reference is the upstream issue report rather than working exploit code.
Heap-based buffer over-read in the HDF5 library's scale-offset filter decoder (H5Z__filter_scaleoffset) allows a local, unauthenticated attacker to cause a denial of service by supplying a crafted HDF5 file that a victim opens. The flaw occurs when the filter's stored minimum-bits parameter equals the datatype's full precision and the decoder attempts to copy d_nelmts * size bytes from a compressed chunk that is too short, triggering an out-of-bounds read and application crash. The vendor CVSS 4.0 vector (6.8 Medium) rates this as an availability-only impact with no confidentiality or integrity effect; no public exploit code has been identified, and the fix is available as an upstream pull request but not yet confirmed in a tagged release.
Heap use-after-free in the HDF5 library (The HDF Group, all versions before 2.3.0) is triggered when an application such as h5dump reads a dataset whose compound datatype contains floating-point members, allowing a crafted .h5 file to crash the parsing process and, depending on heap layout and allocator behaviour, potentially corrupt memory further. Exploitation requires the victim to open a malicious file locally (local vector, mandatory user interaction, no authentication needed), so it is not remotely reachable on its own. No public exploit code has been identified at time of analysis and the issue is not in CISA KEV; the vendor's own CVSS 4.0 base of 4.6 aligns with the independent assessment that the reliably demonstrated impact is a crash rather than proven code execution.
Integer underflow in HDF5 through 2.3.0 allows denial of service when processing Fletcher32-filtered datasets with chunk sizes smaller than 4 bytes. The `H5Z__filter_fletcher32` function in `H5Zfletcher32.c` subtracts the 4-byte checksum length from the input buffer size using an unsigned `size_t` without first verifying the buffer meets the minimum size, causing the result to wrap near `SIZE_MAX` and triggering a massively out-of-bounds read inside `H5_checksum_fletcher32`. Any application or pipeline calling `H5Dread` on a crafted HDF5 file - including the standard `h5ls` and `h5dump` utilities - can be crashed; no public exploit code has been identified and this vulnerability is not in CISA KEV.
Out-of-bounds heap read in HDF5's N-Bit filter decompression affects all versions through 2.3.0, allowing an attacker who can deliver a crafted HDF5 file to a user or automated pipeline to trigger application crashes and, in constrained cases, leak adjacent heap memory contents into decompressed dataset values. The three affected functions - H5Z__nbit_decompress_one_byte, H5Z__nbit_decompress_one_nooptype, and H5Z__nbit_decompress_one_atomic - advance a buffer read index without bounding it against the actual compressed chunk size, exploitable whenever H5Dread is invoked, including via common tools like h5ls and h5repack. No public exploit code has been identified at time of analysis, and this vulnerability is not listed in the CISA KEV catalog.
Null pointer dereference in HDF5 through 2.3.0 allows denial of service when a user opens a crafted file containing a malformed N-Bit filter pipeline message with zero client-data values. The function H5Z__filter_nbit unconditionally reads cd_values[0] through cd_values[4] before checking whether the array is non-NULL or contains at least 5 elements, crashing any application - including the bundled h5ls and h5repack tools - that calls H5Dread on such a dataset. No active exploitation has been confirmed (not listed in CISA KEV) and no EPSS score was available, but the fix diff publicly exposes the exact crash path, lowering the barrier for proof-of-concept development.
HDF5 library through version 2.3.0 crashes with a divide-by-zero when a process opens a crafted file containing mismatched chunk-layout and dataspace dimensionality. The missing rank validation in H5O__layout_decode allows the corrupt metadata to propagate unchecked to H5S__hyper_iter_get_seq_list, where the invalid value causes integer division by zero and application termination. Tools that automatically consume externally-supplied HDF5 files - such as the bundled h5repack utility - are the primary exposure surface; no public exploit code or confirmed active exploitation has been identified at time of analysis.
Untrusted pointer dereference in HDF5's h5dump utility (before version 2.1.1) causes a denial of service when processing specially crafted HDF5 files containing variable-length string datasets with more than one element rendered in binary mode. The stride calculation for per-element offsets becomes corrupted, causing subsequent elements to be read from misaligned memory addresses and dereferenced as pointers, crashing the tool. No public exploit code exists at time of analysis, and no active exploitation has been confirmed - the local attack vector and DoS-only impact make this a low operational priority for most environments.
Denial of service in HDF5 caused by a NULL pointer dereference when processing a crafted HDF5 file with an invalid variable-length datatype attribute. The vulnerability affects all versions of HDF5 and can be triggered by a user opening a malicious file, leading to application crash. Publicly available exploit code exists per CVSS metric.
Double free in HDF5 library allows a local attacker to cause a denial of service via a crafted file with an oversized chunk size. Processing the file with h5repack triggers an application abort, with no confidentiality or integrity impact. No active exploitation or public exploit code has been confirmed.
Heap-based buffer overflow in HDF5 through 2.1.1 enables attackers to crash applications and potentially corrupt data by providing a crafted HDF5 file. The flaw lies in the shared‑message list‑index deserializer (SOHM), allowing out‑of‑bounds heap reads and writes when a num_messages field exceeds the declared list_max. No active exploitation has been reported, but the issue is publicly documented and a proof‑of‑concept may exist in the linked issue.