CVE-2025-6516 HDF5 H5Fint.c H5F_addr_decode_len heap-based overflow
A heap-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-6516?
CVE-2025-6516 is a medium-severity memory corruption vulnerability in Hdfgroup Hdf5, published on 23 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 up to 1.14.6 and classified as critical. This vulnerability affects the function H5F_addr_decode_len of the file /hdf5/src/H5Fint.c. The manipulation leads to heap-based buffer overflow. An attack has to be approached locally. The exploit has been disclosed to the public and may be used.
Which versions are affected by CVE-2025-6516?
It affects 1 product.
Products include Hdfgroup Hdf5.
How do I fix CVE-2025-6516?
Upgrade to a fixed version.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2025-6516 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-6516 exists.
Other vulnerabilities in Hdfgroup Hdf5
Sources
Also known as DEBIAN-CVE-2025-6516, ECHO-961b-7868-8727, GHSA-r9x6-p32f-jfm3, JLSEC-2026-341, UBUNTU-CVE-2025-6516.