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.
Metrics
Affected Vendors & Products
Advisories
No advisories yet.
Fixes
Solution
No solution given by the vendor.
Workaround
No workaround given by the vendor.
References
History
Tue, 27 Oct 2026 04:30:00 +0000
| Type | Values Removed | Values Added |
|---|---|---|
| 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. | |
| Title | HTSlib through 1.24 Heap Out-of-Bounds Write via Truncated .gzi Index Count | |
| First Time appeared |
Htslib
Htslib htslib |
|
| Weaknesses | CWE-197 | |
| CPEs | cpe:2.3:a:htslib:htslib:*:*:*:*:*:*:*:* | |
| Vendors & Products |
Htslib
Htslib htslib |
|
| References |
|
|
| Metrics |
cvssV3_1
|
Projects
Sign in to view the affected projects.
Status: PUBLISHED
Assigner: VulnCheck
Published:
Updated: 2026-10-26T21:52:41.511Z
Reserved: 2026-10-26T20:23:36.636Z
Link: CVE-2026-116742
No data.
Status : Received
Published: 2026-10-26T22:16:58.680
Modified: 2026-10-26T22:16:58.680
Link: CVE-2026-116742
No data.
OpenCVE Enrichment
No data.
Weaknesses