CVE-2026-31965: HTSlib CRAM reader has out-of-bounds reads 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. In the cramdecodeslice() function called while reading CRAM records, validation of the reference id field occurred too late, allowing two out of bounds reads to occur before the invalid data was detected. The bug does allow two values to be leaked to the caller, however as the function reports an error it may be difficult to exploit them. It is also possible that the program will crash due to trying to access invalid memory. 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
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:50 PM
Data Sourced
via MITRE·06:50 PM
DescriptionWeakness
Data Sourced
via NVD·07:16 PM
RemedyDescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2026-31965?

CVE-2026-31965 has been identified as a high-severity vulnerability due to the risk of out-of-bounds reads.

2

How do I fix CVE-2026-31965?

To address CVE-2026-31965, users should update HTSlib to version 1.22.2 or later.

3

Which versions of HTSlib are affected by CVE-2026-31965?

CVE-2026-31965 affects HTSlib versions prior to 1.21.2 and between 1.22 and 1.22.1, as well as version 1.23.

4

What type of vulnerability is CVE-2026-31965?

CVE-2026-31965 is categorized as an out-of-bounds read vulnerability.

5

What functions are impacted by CVE-2026-31965 in HTSlib?

The vulnerability in CVE-2026-31965 specifically impacts the cram_decode_slice() function.

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