JLSEC-2026-1562: Medium severity julia/hdf5_jll vulnerability
HDF5 through 2.2.0 contains a heap buffer over-read vulnerability in H5Lexterntraverse() in src/H5Lexternal.c, the default traversal callback for external links. The callback locates the target file name and object path within the link’s user data using strlen() without validating the buffer against its stored size (udatasize, which was marked unused). A crafted HDF5 file containing an external link whose data is not NULL-terminated, or is too short to hold both strings, causes strlen() to read past the end of the udata heap buffer, and the derived object path pointer may also point outside the buffer. The overrun is unbounded and continues until a zero byte is found. The flaw is triggered when the malicious link is traversed, for example when opening an object through it. An attacker who can get a user or application to access a crafted file can cause a denial of service, and adjacent heap contents may be incorporated into the external file name or object path the library attempts to open.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
julia/HDF5_jllto a version that resolves this vulnerability.Fixed in 2.3.0+0
Event History
Frequently Asked Questions
Who is most likely to be exposed to this issue?
Applications using julia/hdf5_jll that open HDF5 files from untrusted or externally supplied sources are exposed when those files contain external links. The issue is triggered when an application traverses such a link, including by opening an object through it.
What must an attacker do to trigger the vulnerability?
An attacker must cause a user or application to access a crafted HDF5 file containing an external link with non-NULL-terminated or undersized link data. No privileges are required, but access to the malicious file requires user or application interaction.
What can be done before an update is available?
Do not open untrusted HDF5 files, especially files that may contain external links, and avoid traversing external links in supplied files. This prevents the vulnerable callback from processing malformed external-link data.
How can I determine whether a deployment is affected?
Deployments using HDF5 through version 2.2.0 are affected. The vulnerable path is reached only when an external link is traversed; malformed link data that lacks a terminating NULL byte or cannot contain both the target filename and object path is the triggering condition.