CVE-2026-116742

published 26 Oct 2026 · updated 27 Oct 2026

HTSlib through 1.24 Heap Out-of-Bounds Write via Truncated .gzi Index Count

4.4MediumCVSS 4.4EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. No fixed version is recorded.

HTSlib through 1.24 contains a heap out-of-bounds write and read vulnerability in bgzf_index_load_hfile() 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 bgzf_useek(), resulting in heap corruption or crashes in tools like samtools and bcftools.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
samtools<=1.24

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-116742 severity on Zeptric[![CVE-2026-116742](https://zeptric.io/badge/cve/CVE-2026-116742.svg)](https://zeptric.io/cve/CVE-2026-116742)