CVE-2026-116742
4.8medium
HTSlib through 1.24 Heap Out-of-Bounds Write via Truncated .gzi Index Count
- Severity
- 4.8medium CVSS:4.0 by VulnCheck
- Exploit likelihood
- 0.16% (higher than 5% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- VulnCheck
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
| Product or package | Versions | Reported by |
|---|---|---|
| samtools htslib | up to 1.24 | CVE List |
All scores
| VulnCheck | 4.8medium CVSS:4.0 | 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 |
| VulnCheck | 4.4medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-116742 changed 2026-10-27 | CVE Terms of Use |
| NVD | CVE-2026-116742 changed 2026-10-27 | Public domain |