CVE-2025-6857 HDF5 H5Gnode.c H5G__node_cmp3 stack-based overflow

Medium 4.8 Published Updated

A stack-based buffer overflow in HDF5 allows local attackers to execute arbitrary code or cause denial of service via crafted files.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2025-6857?

CVE-2025-6857 is a medium-severity memory corruption vulnerability in Hdfgroup Hdf5, published on 29 Jun 2025. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

A vulnerability has been found in HDF5 1.14.6 and classified as problematic. Affected by this vulnerability is the function H5G__node_cmp3 of the file src/H5Gnode.c. The manipulation leads to stack-based buffer overflow. It is possible to launch the attack on the local host. The exploit has been disclosed to the public and may be used.

Weakness: CWE-121, CWE-119

Which versions are affected by CVE-2025-6857?

It affects 1 product.

Products include Hdfgroup Hdf5.

How do I fix CVE-2025-6857?

Apply the vendor's patch.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2025-6857 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-6857 exists.

All Hdfgroup Hdf5 vulnerabilities

Sources

Also known as AZL-64425, AZL-64431, DEBIAN-CVE-2025-6857, ECHO-7255-8e71-bd9c, GHSA-3475-c493-wg9p, JLSEC-2026-347 and 1 more.

Is CVE-2025-6857 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free