CVE-2026-86095
7.8Unidata · netcdf-c
Unidata netcdf-c through 4.10.1 contains an out-of-bounds write vulnerability in NC4_HDF5_inq_attname that allows memory corruption via crafted HDF5 files with oversized attribute names.
Executive summary
A critical out-of-bounds write vulnerability in Unidata netcdf-c allows attackers to trigger memory corruption and application crashes by supplying specially crafted HDF5 files.
Vulnerability
The software fails to perform boundary validation when copying HDF5 attribute names into a fixed 256-byte buffer within the NC4_HDF5_inq_attname function. This flaw can be triggered by an unauthenticated attacker providing a malicious HDF5 file that is subsequently processed by an application using the library.
Business impact
Successful exploitation of this vulnerability leads to memory corruption, which typically results in a denial of service through application crashes. In certain environments, this type of memory corruption may be leveraged to achieve arbitrary code execution, posing a significant risk to data integrity and system availability. Given the CVSS score of 7.8, this issue is classified as high severity, particularly for scientific and analytical workflows that rely on processing untrusted HDF5 data.
Remediation
Immediate Action: Update the netcdf-c library to a version containing the fix for this issue as provided by the vendor. Monitor vendor security advisories for the official release containing the fix committed in the repository.
Proactive Monitoring: Implement robust input validation for all HDF5 files ingested by applications. Monitor system logs for recurring application crashes or segmentation faults that may indicate an exploitation attempt.
Compensating Controls: Ensure that applications processing HDF5 data are run with the least privilege necessary to minimize the impact of a potential crash or compromise. Utilize memory protection features such as Address Space Layout Randomization (ASLR) and Data Execution Prevention (DEP) to harden the environment.
Exploitation status
Public Exploit Available: No
Analyst recommendation
The vulnerability presents a clear risk to system stability and security for any software utilizing the netcdf-c library for HDF5 parsing. Security teams should prioritize identifying all instances of this library within their environment and coordinate with development teams to apply the vendor-provided patch as soon as it is released. Until a patch is deployed, restrict the processing of HDF5 files to trusted sources only.
Sources
Originally found and disclosed by Michael Holmquist, per the CVE Program record.
- github.com
- NC4_HDF5_inq_attname() unbounded strcpy at v4.10.1 Technical analysis
- VulnCheck Advisory: Unidata netcdf-c through 4.10.1 Out-of-bounds Write via Oversized HDF5 Attribute Name Third-party advisory