CVE-2025-2912 HDF5 H5Omessage.c H5O_msg_flush heap-based overflow

Medium 4.8 Published Updated

A local attacker can trigger a heap-based buffer overflow in the HDF5 library, potentially leading to code execution or 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-2912?

CVE-2025-2912 is a medium-severity memory corruption vulnerability in Hdfgroup Hdf5, published on 28 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 up to 1.14.6. It has been declared as problematic. Affected by this vulnerability is the function H5O_msg_flush of the file src/H5Omessage.c. The manipulation of the argument oh leads to heap-based buffer overflow. The attack needs to be approached locally. The exploit has been disclosed to the public and may be used.

Weakness: CWE-122, CWE-787, CWE-119

Which versions are affected by CVE-2025-2912?

It affects 1 product.

Products include Hdfgroup Hdf5.

How do I fix CVE-2025-2912?

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-2912 being exploited?

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

All Hdfgroup Hdf5 vulnerabilities

Sources

Also known as DEBIAN-CVE-2025-2912, ECHO-dfc4-87e9-66a2, GHSA-mrrj-w56r-7c5r, JLSEC-2026-329, ROOT-OS-DEBIAN-12-CVE-2025-2912, UBUNTU-CVE-2025-2912.

Is CVE-2025-2912 in your software?

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

Check your SBOMs for free