CVE-2026-120758

NULL Pointer Dereference in H5HL_unprotect via Corrupted File

Published Nov 3, 2026 CVSS 4.0 · 5.4 Medium EPSS < 1% KEV · Not listed
Description
HDF5 through 2.2.0 contains a NULL pointer dereference vulnerability in H5HL_unprotect() in src/H5HL.c. H5HL_protect() pins a single metadata cache entry for a local heap, either the heap prefix or the separate data block, and H5HL_unprotect() unpins it on the final unprotect. When the metadata cache destroys a corrupted local heap entry, H5HL__prfx_dest() unlinks it from the heap by setting heap->prfx or heap->dblk to NULL. A crafted HDF5 file can therefore reach H5HL_unprotect() with no cached object to unpin, and the function passes the NULL pointer to H5AC_unpin_entry(). This causes an assertion failure in debug builds and a NULL pointer dereference and crash in release builds. An attacker who can get a user or application to open and traverse a malicious file can cause a denial of service.

Analysis

AI-generated

Technical impact

HDF5 libraries up to version 2.2.0 contain a NULL pointer dereference in the H5HL_unprotect() function. When a corrupted local heap entry is destroyed, the heap pointers are set to NULL and a subsequent call to H5HL_unprotect() passes these NULL pointers to the cache unpinning routine, causing an assertion failure in debug builds or an unhandled crash in release builds. The result is a denial of service as the offending process terminates.

Affected Systems

The vulnerability affects all deployments of the HDF Group HDF5 library through version 2.2.0. Any application that reads HDF5 files—such as data analysis tools, scientific computing software, or custom data processing workflows—may be impacted if it uses a version in the affected range.

Risk and Exploitability

The CVSS score of 5.4 indicates medium severity, and the EPSS score is not available, so the likelihood of exploitation cannot be quantified here; however, the vulnerability is listed as not in the CISA KEV catalog. Based on the description, it is inferred that the attack requires an attacker to supply or control a malicious HDF5 file that the target application or user opens. The effective vector would be a local filesystem or a remote database that stores HDF5 files. The vulnerability would allow an attacker to crash the application, leading to potential interruption of services or denial of access to data.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to HDF5 2.2.1 or later, which removes the NULL pointer dereference in H5HL_unprotect()
  • Restrict access to untrusted HDF5 files by enforcing strict file permissions or using sandboxed processes when loading external data
  • Validate HDF5 file integrity before processing, for example by checking file checksums or using HDF5’s built-in reading safeguards to detect corrupt metadata

Generated by OpenCVE AI on November 3, 2026 at 16:41 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
CPEs cpe:2.3:a:hdfgroup:hdf5:*:*:*:*:*:*:*:*
Metrics cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H'}

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Hdfgroup
Hdfgroup hdf5
Vendors & Products Hdfgroup
Hdfgroup hdf5
Type Values Removed Values Added
Description HDF5 through 2.2.0 contains a NULL pointer dereference vulnerability in H5HL_unprotect() in src/H5HL.c. H5HL_protect() pins a single metadata cache entry for a local heap, either the heap prefix or the separate data block, and H5HL_unprotect() unpins it on the final unprotect. When the metadata cache destroys a corrupted local heap entry, H5HL__prfx_dest() unlinks it from the heap by setting heap->prfx or heap->dblk to NULL. A crafted HDF5 file can therefore reach H5HL_unprotect() with no cached object to unpin, and the function passes the NULL pointer to H5AC_unpin_entry(). This causes an assertion failure in debug builds and a NULL pointer dereference and crash in release builds. An attacker who can get a user or application to open and traverse a malicious file can cause a denial of service.
Title NULL Pointer Dereference in H5HL_unprotect via Corrupted File
Weaknesses CWE-476
References
Metrics cvssV4_0

{'score': 5.4, 'vector': 'CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:P'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
HDFG
Published
Updated
Nov 3, 2026, 5:52 PM
Reserved
Nov 2, 2026, 9:30 PM
Status
Analyzed
Published
Nov 3, 2026, 4:17 PM
Modified
Nov 3, 2026, 9:08 PM
Severity
Moderate
Public date
Nov 3, 2026, 3:38 PM