CVE-2025-2310 HDF5 Metadata Attribute Decoder H5MM_strndup heap-based overflow
A heap-based buffer overflow in the HDF5 library's metadata decoder allows local attackers to execute arbitrary code or cause denial of service.
- 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-2310?
CVE-2025-2310 is a medium-severity memory corruption vulnerability in Hdfgroup Hdf5, published on 14 Mar 2025. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
A vulnerability was found in HDF5 1.14.6 and classified as critical. This issue affects the function H5MM_strndup of the component Metadata Attribute Decoder. The manipulation leads to heap-based buffer overflow. Attacking locally is a requirement. The exploit has been disclosed to the public and may be used. The vendor plans to fix this issue in an upcoming release.
Which versions are affected by CVE-2025-2310?
It affects 1 product.
Products include Hdfgroup Hdf5.
How do I fix CVE-2025-2310?
No fix published yet.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2025-2310 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-2310 exists.
Other vulnerabilities in Hdfgroup Hdf5
Sources
Also known as AZL-58806, AZL-58825, DEBIAN-CVE-2025-2310, ECHO-ccd1-8584-5447, GHSA-qxwf-xj2v-qm83, JLSEC-2026-328 and 1 more.