CVE-2025-2913 HDF5 H5FL.c H5FL__blk_gc_list use after free

Medium 4.8 Published Updated

A local attacker can exploit a use-after-free flaw in the HDF5 library to potentially execute arbitrary code or cause a 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-2913?

CVE-2025-2913 is a medium-severity use after free 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 rated as critical. Affected by this issue is the function H5FL__blk_gc_list of the file src/H5FL.c. The manipulation of the argument H5FL_blk_head_t leads to use after free. An attack has to be approached locally. The exploit has been disclosed to the public and may be used.

Weakness: CWE-416, CWE-119

Which versions are affected by CVE-2025-2913?

It affects 1 product.

Products include Hdfgroup Hdf5.

How do I fix CVE-2025-2913?

Upgrade to a fixed version.

Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.

Is CVE-2025-2913 being exploited?

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

All Hdfgroup Hdf5 vulnerabilities

Sources

Also known as DEBIAN-CVE-2025-2913, ECHO-4043-7553-2164, GHSA-v5x4-36wq-jqfc, JLSEC-2026-330, ROOT-OS-DEBIAN-12-CVE-2025-2913, UBUNTU-CVE-2025-2913.

Is CVE-2025-2913 in your software?

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

Check your SBOMs for free