Vulnerability · Published Oct 26, 2026 · Assigned by VulnCheck

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

Medium 4.4

In plain English

A medium-severity security flaw in htslib from samtools. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.1% (higher than 2% of all known vulnerabilities).

Severity (CVSS 3.1)4.4Medium
Exploit odds (30 days)0.1%top 97.9% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

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 packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12htslibno fix listedDEBIAN-CVE-2026-116742
Debian:13htslibno fix listedDEBIAN-CVE-2026-116742
Debian:14htslibno fix listedDEBIAN-CVE-2026-116742
Ubuntu:22.04:LTShtslibno fix listedUBUNTU-CVE-2026-116742
Ubuntu:24.04:LTShtslibno fix listedUBUNTU-CVE-2026-116742
Ubuntu:26.04:LTShtslibno fix listedUBUNTU-CVE-2026-116742
Ubuntu:26.10htslibno fix listedUBUNTU-CVE-2026-116742

Affected products (as reported)

VendorProductVersions
samtools htslib 0 – through 1.24

Weakness: CWE-197 · Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L

References