Medium severity · published Oct 26, 2026
CVE-2026-116742
HTSlib through 1.24 Heap Out-of-Bounds Write via Truncated .gzi Index Count
New
4.4
CVSS
0.1%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L
Attack vector
Local
Complexity
Low
Privileges
None
User interaction
Required
Confidentiality
None
Integrity
Low
Availability
Low
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.1% · higher than 2% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
HT
htslib · samtools
through 1.24 · source: vendor
Affected product
HT
htslib
samtools
More from htslib
9.1
CVE-2026-31967
HTSlib CRAM reader has out-of-bounds read due to improper validation of input
9.1
CVE-2026-31966
HTSlib CRAM reader has out-of-bounds read due to improper validation of input
8.8
CVE-2026-31962
HTSlib CRAM reader has heap buffer overflow due to improper validation of input
8.2
CVE-2026-31965
HTSlib CRAM reader has out-of-bounds reads due to improper validation of input
8.1
CVE-2026-31971
HTSlib CRAM decoder vulnerable to buffer overflow