CVE-2026-116742: HTSlib through 1.24 Heap Out-of-Bounds Write via Truncated .gzi Index Count

Published Oct 26, 2026
·
Updated

HTSlib through 1.24 contains a heap out-of-bounds write and read vulnerability in bgzfindexloadhfile() in bgzf.c that allows attackers to corrupt heap memory by supplying a crafted .gzi index entry count. A count of 0xFFFFFFFF truncates noffs to zero, causing writes past a malloc(0) buffer and an offs[-1] read in bgzfuseek(), resulting in heap corruption or crashes in tools like samtools and bcftools.

Affected Software

1 affected component
HTSlib HTSlib<=1.24

Event History

Oct 26, 2026
CVE Published
via MITRE·09:52 PM
Data Sourced
via MITRE·09:52 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which environments are exposed to this issue?

Systems using HTSlib through 1.24 are exposed when they load a crafted .gzi index file. Tools identified as affected in the available data include samtools and bcftools.

2

What must an attacker provide or cause a user to do?

An attacker needs to supply a crafted .gzi index whose entry count is 0xFFFFFFFF and have it processed by vulnerable HTSlib code. The supplied vector indicates local access and user interaction are required.

3

How can I identify suspicious input associated with this vulnerability?

Inspect .gzi index files that are processed by affected software for an entry count of 0xFFFFFFFF. Processing such a file may result in heap corruption or application crashes.

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