Null-Dereference READ Vulnerability in htslib Package

htslib Updated 08 Jun 2026

Summary

08/06/2026
N/A
Yes i
Unrated
Not published

OSV-2026-882: Null-dereference READ in cram_decoder_init. Affects htslib versions >= d926270f580aa64fab4634859d4518d2d7a5dd7e, < 1b3225f11b7bb55781ad7927f3ef343bc810a21d. Fixed in 1b3225f11b7bb55781ad7927f3ef343bc810a21d. 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

htslib is a widely used C library designed for reading and writing genomic data formats, particularly those associated with high-throughput sequencing. It provides essential functionalities for bioinformatics applications, enabling efficient data manipulation and analysis. However, like any software, it is susceptible to vulnerabilities that can compromise its integrity and reliability.

Vulnerability Detail

The vulnerability identified in htslib is a null-dereference READ that occurs during the initialization of the cram decoder. This issue arises when the function 'cram_decoder_init' attempts to access a null pointer, leading to a crash. The vulnerability was reported through OSS-Fuzz, highlighting its potential to disrupt applications relying on htslib for genomic data processing. If exploited, this vulnerability could result in application crashes, data loss, or unintended behavior, making it critical for users to address it promptly.

How To Fix

Minimum fixed version

1b3225f11b7bb55781ad7927f3ef343bc810a21d

This is the first release that contains the fix.

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 specific functionalities that trigger the null-dereference READ until they can update to the patched version. This may involve modifying their code to bypass the use of the cram decoder or implementing additional checks to prevent null pointer dereferences.

Conclusion

The null-dereference READ vulnerability in the htslib package poses significant risks to applications relying on this library for genomic data processing. It is crucial for users to update to the patched version to ensure the integrity and reliability of their applications. Utilizing tools like Vulert can help monitor and manage vulnerabilities effectively.

See every vulnerability recorded for htslib →

Share this vulnerability

FAQ

A null-dereference READ occurs when a program attempts to read data from a memory location that has not been properly initialized, leading to crashes or undefined behavior.

You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software. By using the Vulert playground, you can check if your application is affected without any signup.

The consequences include application crashes, data loss, and potential security risks if the vulnerability is exploited by malicious actors.

Yes, you should upgrade to the fixed version 1b3225f11b7bb55781ad7927f3ef343bc810a21d to mitigate the vulnerability.

If immediate updates are not possible, consider implementing workarounds such as avoiding the use of the affected functionalities until you can apply the patch.

Related vulnerabilities

Recent vulnerabilities recorded for htslib.

How To Fix

Minimum fixed version

1b3225f11b7bb55781ad7927f3ef343bc810a21d

This is the first release that contains the fix.

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