CVE-2026-31963: HTSlib CRAM reader has heap buffer overflow due to improper validation of input

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. As one method of removing redundant data, CRAM uses reference-based compression so that instead of storing the full sequence for each alignment record it stores a location in an external reference sequence along with a list of differences to the reference at that location as a sequence of "features". When decoding these features, an out-by-one error in a test for CRAM features that appear beyond the extent of the CRAM record sequence could result in an invalid write of one attacker-controlled byte beyond the end of a heap buffer. Exploiting this bug causes a heap buffer overflow. If a user opens a file crafted to exploit this issue, it could lead to the program crashing, or overwriting of data and heap structures in ways not expected by the program. It may be possible to use this to obtain arbitrary code execution. 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>=1.21.1<=1.23.1
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:22 PM
Data Sourced
via MITRE·06:22 PM
DescriptionWeakness
Data Sourced
via NVD·07:16 PM
RemedyDescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2026-31963?

CVE-2026-31963 has been classified as a critical severity vulnerability due to the potential for heap buffer overflow leading to arbitrary code execution.

2

How do I fix CVE-2026-31963?

To mitigate CVE-2026-31963, users should upgrade their HTSlib library to version 1.23.2 or later, where the vulnerability has been addressed.

3

What versions of HTSlib are affected by CVE-2026-31963?

HTSlib versions from 1.21.1 up to 1.23, excluding 1.23.2, are vulnerable to CVE-2026-31963.

4

What type of vulnerability is CVE-2026-31963?

CVE-2026-31963 is a heap buffer overflow vulnerability resulting from inadequate input validation in the CRAM reader of HTSlib.

5

What impact could CVE-2026-31963 have on my system?

Exploitation of CVE-2026-31963 could allow an attacker to execute arbitrary code on systems using the affected versions of the HTSlib library.

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