{"id":"CVE-2026-116742","published":"2026-10-26T21:52:41Z","modified":"2026-10-27T14:16:48Z","title":"HTSlib through 1.24 Heap Out-of-Bounds Write via Truncated .gzi Index Count","vendor":"samtools","product":"htslib","tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":4.4,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00158,"percentile":0.04949,"provenance":"source"},"cwes":[{"id":"CWE-197","name":"Numeric Truncation Error"}],"references":[{"url":"https://github.com/samtools/htslib/pull/2057","tags":["issue-tracking","patch"]},{"url":"https://github.com/samtools/htslib/commit/18dddf02bb2c0053b32acec427723555a24b2873","tags":["patch"]},{"url":"https://github.com/samtools/htslib","tags":["product"]},{"url":"https://github.com/samtools/htslib/blob/1.24/bgzf.c#L2504","tags":["technical-description"]},{"url":"https://hackmd.io/@haindpwn/htslib-bgzf-gzi-int-truncation-oob","tags":["third-party-advisory"]},{"url":"https://github.com/samtools/htslib/issues/2113","tags":["issue-tracking"]},{"url":"https://www.vulncheck.com/advisories/htslib-through-1.24-heap-out-of-bounds-write-via-truncated-gzi-index-count","tags":["third-party-advisory"]}],"priority":{"score":4.1,"factors":[{"name":"EPSS percentile","points":0.99},{"name":"CVSS severity","points":3.08}]},"vendorSlug":"samtools","affectedVersions":[{"vendor":"samtools","product":"htslib","versions":["<= 1.24"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-10-27T13:42:04.833817Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-110490","exploited":false,"provenance":"source"}}