{"id":"CVE-2026-116742","aliases":["CVE-2026-116742"],"related":[],"kind":"vulnerability","state":"published","title":"HTSlib through 1.24 Heap Out-of-Bounds Write via Truncated .gzi Index Count","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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2026-10-26T21:52:41.511Z","modified":"2026-10-27T16:04:22.707Z","severity":{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"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","score":4.8,"rating":"MEDIUM"},"severities":[{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"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","score":4.8,"rating":"MEDIUM"},{"scorer":"VulnCheck","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L","score":4.4,"rating":"MEDIUM"}],"cwes":["CWE-197"],"affected":[{"ranges":[{"type":"custom","introduced":"0","lastAffected":"1.24","status":"affected"}],"vendor":"samtools","product":"htslib","repo":"https://github.com/samtools/htslib","source":"cvelist"}],"references":[{"url":"https://github.com/samtools/htslib/pull/2057","tags":["issue-tracking","patch"],"sources":["cvelist","nvd"]},{"url":"https://github.com/samtools/htslib/commit/18dddf02bb2c0053b32acec427723555a24b2873","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://github.com/samtools/htslib","tags":["product"],"sources":["cvelist","nvd"]},{"url":"https://github.com/samtools/htslib/blob/1.24/bgzf.c#L2504","tags":["technical-description"],"sources":["cvelist","nvd"]},{"url":"https://hackmd.io/@haindpwn/htslib-bgzf-gzi-int-truncation-oob","tags":["third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://github.com/samtools/htslib/issues/2113","tags":["issue-tracking"],"sources":["cvelist","nvd"]},{"url":"https://www.vulncheck.com/advisories/htslib-through-1.24-heap-out-of-bounds-write-via-truncated-gzi-index-count","tags":["third-party-advisory"],"sources":["cvelist","nvd"]}],"credits":["HaiND from the Post and Telecommunication Institute of Technology","daviesrob"],"assigner":"VulnCheck","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-10-27T13:42:04.833Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-116742","url":"https://www.cve.org/CVERecord?id=CVE-2026-116742","licence":"CVE Terms of Use","modified":"2026-10-27T14:16:48.820Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-116742","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-116742","licence":"Public domain","modified":"2026-10-27T16:04:22.707Z"}],"updatedAt":"2026-11-25T22:59:47.303Z","epss":{"score":0.00158,"percentile":0.05205,"date":"2026-12-01T12:00:22.000Z"}}