{"schema":"threatline.record/2","record":{"id":"CVE-2026-116742","aliases":[],"summary":"HTSlib through 1.24 Heap Out-of-Bounds Write via Truncated .gzi Index Count","details":"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.","categories":["Unclassified"],"product":"htslib","vendor":"samtools","ecosystem":null,"affected_ranges":[{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-116742","source_modified_at":"2026-10-26T21:52:41.511Z","fetched_at":"2026-10-26T23:45:56.352924Z","product":"htslib","vendor":"samtools","versions":[{"version":"0","status":"affected","versionType":"custom","lessThanOrEqual":"1.24"}],"defaultStatus":"unaffected"}],"fixed_versions":[],"cvss":4.8,"severity":"Medium","kev":{"listed":false},"epss":{"probability":null,"percentile":null,"score_date":null},"published_at":"2026-10-26T21:52:41.511Z","modified_at":"2026-10-26T21:52:41.511Z","provenance":[{"source":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-116742","fetched_at":"2026-10-26T23:45:56.352924Z","source_modified_at":"2026-10-26T21:52:41.511Z"}],"sources":["CVE List"],"references":[{"source":"CVE List","url":"https://github.com/samtools/htslib/pull/2057","tags":["issue-tracking","patch"]},{"source":"CVE List","url":"https://github.com/samtools/htslib/commit/18dddf02bb2c0053b32acec427723555a24b2873","tags":["patch"]},{"source":"CVE List","url":"https://github.com/samtools/htslib","tags":["product"]},{"source":"CVE List","url":"https://github.com/samtools/htslib/blob/1.24/bgzf.c#L2504","tags":["technical-description"]},{"source":"CVE List","url":"https://hackmd.io/@haindpwn/htslib-bgzf-gzi-int-truncation-oob","tags":["third-party-advisory"]},{"source":"CVE List","url":"https://github.com/samtools/htslib/issues/2113","tags":["issue-tracking"]},{"source":"CVE List","url":"https://www.vulncheck.com/advisories/htslib-through-1.24-heap-out-of-bounds-write-via-truncated-gzi-index-count","tags":["third-party-advisory"]}],"locations":[],"motoko_assessment":{"status":"requires_architecture_review","automatic_remediation":false},"cve_state":"PUBLISHED","cvss_source":"CVE List","classification":{"method":"product-first software-layer rules","rules_version":"2.1","matched_on":null,"confidence":"unknown","reviewed":false},"change_timestamp":"2026-10-26T21:52:41.511Z","content_hash":"6b63cb0d526b5b8c1d5910d35896ef560498545fbfa2a4eb2bc5c27ea51d5bfe"}}
