Buffer Overflow Vulnerability in HDF5 Package Leading to Potential Code Execution

hdf5 Updated 02 Oct 2025

Summary

14/05/2024
N/A
Yes i
Unrated
Not published

DEBIAN-CVE-2024-29165: HDF5 through 1.14.3 contains a buffer overflow in H5Z__filter_fletcher32, resulting in the corruption of the instruction pointer and causing denial of service or potential code execution. Affects hdf5 versions < 1.14.5+repack-1. Fixed in 1.14.5+repack-1. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

HDF5 is a widely used file format and library designed for storing and managing large amounts of data. It is particularly popular in scientific computing, data analysis, and engineering applications due to its ability to handle complex data structures efficiently. However, versions of HDF5 up to 1.14.3 are vulnerable to a buffer overflow issue that can compromise the integrity of the application and lead to severe security risks.

Vulnerability Detail

The vulnerability in HDF5 arises from a buffer overflow in the function H5Z__filter_fletcher32. This flaw can corrupt the instruction pointer, potentially leading to a denial of service or allowing an attacker to execute arbitrary code. The issue is rooted in improper handling of data during the filtering process, which can be exploited if an attacker crafts specific input data.

How To Fix

Minimum fixed version

1.14.5+repack-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade hdf5

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, users can avoid using the affected filtering function or restrict the input data to prevent triggering the buffer overflow. However, this is not a permanent solution and updating the package is strongly recommended.

Conclusion

The buffer overflow vulnerability in the HDF5 package poses significant risks, including potential code execution and denial of service. Users are urged to update to the latest patched version to safeguard their applications. Utilizing tools like Vulert can help in monitoring and managing open-source vulnerabilities effectively.

See every vulnerability recorded for hdf5 →

Share this vulnerability

FAQ

The vulnerability can lead to denial of service or potential code execution, compromising the security of applications using HDF5.

You can use Vulert, which monitors open-source vulnerabilities in real-time. By uploading your manifest file like package-lock.json, you can check for vulnerabilities without needing to install any software.

Yes, the patched version of HDF5 is 1.14.5+repack-1. Users should update to this version to mitigate the vulnerability.

If an immediate update is not possible, consider implementing input validation to prevent triggering the buffer overflow as a temporary measure.

Detailed information can be found in the Debian CVE database or by visiting the Vulert website for real-time monitoring of vulnerabilities.

Related vulnerabilities

Recent vulnerabilities recorded for hdf5.

How To Fix

Minimum fixed version

1.14.5+repack-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade hdf5

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback