CVE-2026-116742
mediumHTSlib 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 memor…
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:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L Affected products
Not reported by the source (unknown — not "none").
Weakness classification (CWE)
Source: NVD / CISA. “NVD-CWE-Other” and “NVD-CWE-noinfo” mean NVD could not assign a specific weakness.
Mitigation & advisories
No vendor advisory or patch reference tagged by NVD. Check the references below.
References
- https://github.com/samtools/htslib disclosure@vulncheck.com
- https://github.com/samtools/htslib/blob/1.24/bgzf.c#L2504 disclosure@vulncheck.com
- https://github.com/samtools/htslib/commit/18dddf02bb2c0053b32acec427723555a24b2873 disclosure@vulncheck.com
- https://github.com/samtools/htslib/issues/2113 disclosure@vulncheck.com
- https://github.com/samtools/htslib/pull/2057 disclosure@vulncheck.com
- https://hackmd.io/@haindpwn/htslib-bgzf-gzi-int-truncation-oob disclosure@vulncheck.com
- https://www.vulncheck.com/advisories/htslib-through-1.24-heap-out-of-bounds-write-via-trun... disclosure@vulncheck.com
