CVE-2025-2308 HDF5 Scale-Offset Filter H5Z__scaleoffset_decompress_one_byte heap-based overflow

Medium 4.8 Published Updated

A heap-based buffer overflow in the HDF5 Scale-Offset Filter 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-2308?

CVE-2025-2308 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, which was classified as critical, was found in HDF5 1.14.6. This affects the function H5Z__scaleoffset_decompress_one_byte of the component Scale-Offset Filter. 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. The vendor plans to fix this issue in an upcoming release.

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

Which versions are affected by CVE-2025-2308?

It affects 1 product.

Products include Hdfgroup Hdf5.

How do I fix CVE-2025-2308?

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

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

All Hdfgroup Hdf5 vulnerabilities

Sources

Also known as AZL-58810, AZL-58815, DEBIAN-CVE-2025-2308, ECHO-9932-fe1c-038a, GHSA-vr2r-rp8h-3j86, JLSEC-2026-326 and 5 more.

Is CVE-2025-2308 in your software?

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

Check your SBOMs for free