CVE-2026-116742 json
HTSlib through 1.24 Heap Out-of-Bounds Write via Truncated .gzi Index Count
published 2026-10-26 13 d ago modified 2026-10-27 12 d ago also EUVD-2026-110490
- cvss
- 4.4
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.1%
- EPSS 0.1% chance of exploitation in 30 days, percentile 2%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- github.com/samtools/htslib@18dddf0 commit
- github.com/samtools/htslib#2057 pull request
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2026-116742 updated cvss 4.4
htslib: htslib: Denial of Service via crafted index file
-
Red Hat All currently supported Red Hat productsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 12 d ago
Exploit prediction
0.12% chance of exploitation in the next 30 days, higher than 2% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 4.0 | 4.8 | CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N |
| CNA | 3.1 | 4.4 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L |
| CNA | 4.0 | 4.8 | CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
Affected products
- samtools htslib
Classification
- Weakness
-
- CWE-197 Numeric Truncation Error
References
-
github.com
/samtools/htslib/pull/2057
issue-tracking, patch
-
github.com
/samtools/htslib/commit/18dddf02bb2c0053b32acec427723555a24b2873
patch
-
github.com
/samtools/htslib
product
-
github.com
/samtools/htslib/blob/1.24/bgzf.c#L2504
technical-description
-
hackmd.io
/@haindpwn/htslib-bgzf-gzi-int-truncation-oob
third-party-advisory
-
github.com
/samtools/htslib/issues/2113
issue-tracking
-
vulncheck.com
/advisories/htslib-through-1.24-heap-out-of-bounds-write-via-truncated-gzi-index-count
third-party-advisory
Sources
- CVE List CVE-2026-116742
- NVD CVE-2026-116742
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.