CVE-2026-31964: HTSlib CRAM decoder has a NULL Pointer Dereference

Published Mar 18, 2026
·
Updated

HTSlib is a library for reading and writing bioinformatics file formats. CRAM is a compressed format which stores DNA sequence alignment data using a variety of encodings and compression methods. While most alignment records store DNA sequence and quality values, the format also allows them to omit this data in certain cases to save space. Due to some quirks of the CRAM format, it is necessary to handle these records carefully as they will actually store data that needs to be consumed and then discarded. Unfortunately the CONST, XPACK and XRLE encodings did not properly implement the interface needed to do this. Trying to decode records with omitted sequence or quality data using these encodings would result in an attempt to write to a NULL pointer. Exploiting this bug causes a NULL pointer dereference. Typically this will cause the program to crash. Versions 1.23.1, 1.22.2 and 1.21.1 include fixes for this issue. There is no workaround for this issue.

Affected Software

4 affected components
HTSlib HTSlib
HTSlib HTSlib<1.21.1
HTSlib HTSlib>=1.22<1.22.2
HTSlib HTSlib=1.23

Event History

Mar 18, 2026
CVE Published
via MITRE·06:27 PM
Data Sourced
via MITRE·06:27 PM
DescriptionWeakness
Data Sourced
via NVD·07:16 PM
RemedyDescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2026-31964?

CVE-2026-31964 has been classified as a moderate severity vulnerability due to its potential to cause application crashes.

2

How do I fix CVE-2026-31964?

To fix CVE-2026-31964, update HTSlib to version 1.22.2 or later, or apply the relevant patches.

3

What types of applications are affected by CVE-2026-31964?

CVE-2026-31964 affects applications that utilize the HTSlib library for processing bioinformatics file formats.

4

What is the nature of the vulnerability in CVE-2026-31964?

CVE-2026-31964 involves a NULL pointer dereference in the CRAM decoder of HTSlib, leading to potential application failure.

5

Who is responsible for addressing CVE-2026-31964?

The maintainers of HTSlib are responsible for addressing CVE-2026-31964 by releasing updates and patches.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203