Heap-Based Buffer Overflow Vulnerability in HDF5 Package

hdf5 Updated 02 Oct 2025

Summary

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

DEBIAN-CVE-2024-33873: HDF5 Library through 1.14.3 has a heap-based buffer overflow in H5D__scatter_mem in H5Dscatgath.c. 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 data model, library, and file format for storing and managing scientific data. It supports the creation and manipulation of complex data structures and is utilized in various fields such as engineering, physics, and bioinformatics. The HDF5 library is essential for applications that require efficient data storage and retrieval. However, versions of HDF5 up to 1.14.3 are vulnerable to a heap-based buffer overflow, which can lead to severe security issues.

Vulnerability Detail

The vulnerability identified as CVE-2024-33873 is a heap-based buffer overflow found in the H5D__scatter_mem function within the H5Dscatgath.c file of the HDF5 library. This flaw allows an attacker to exploit the memory management of the application, potentially leading to arbitrary code execution or application crashes. The vulnerability arises from improper handling of memory during data scattering operations, which can be triggered by specially crafted 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

If immediate patching is not feasible, consider implementing input validation to ensure that data passed to the HDF5 functions is properly sanitized and does not contain malicious payloads. Additionally, avoid using vulnerable versions of the library until an update can be applied.

Conclusion

The HDF5 library is critical for managing scientific data, but the identified vulnerability (CVE-2024-33873) poses significant risks. It is essential to update to the patched version to mitigate these risks and ensure the security of applications relying on HDF5.

See every vulnerability recorded for hdf5 →

Share this vulnerability

FAQ

CVE-2024-33873 is a vulnerability in the HDF5 library that allows for a heap-based buffer overflow, potentially leading to arbitrary code execution.

Versions of HDF5 up to and including 1.14.3 are affected by this vulnerability.

You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. By uploading your manifest file like package-lock.json to Vulert, you can check if your application is affected by this vulnerability.

If you cannot update the package, implement input validation and avoid using the vulnerable functions until a patch can be applied.

More information can be found in the official CVE database or by visiting the Debian security advisories related to HDF5.

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