Skip to main content
← All vulnerabilities
CVE-2026-116742EUVD-2026-110490GHSA-R296-8JJG-794R

HTSlib through 1.24 Heap Out-of-Bounds Write via Truncated .gzi Index Count

Published
Last modified
published
Not listed in CISA KEV
Fix
Fix or patch referenced
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

HTSlib, the widely used C library for reading and writing bioinformatics file formats, is affected through version 1.24 and can be exploited by a specially crafted index file to corrupt heap memory, causing crashes or potentially unpredictable behavior. Dependent tools such as samtools and bcftools that rely on HTSlib are impacted as well.

Summarized by anthropic/claude-haiku-5.5. Verify details against the original sources.

Read the original 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.

Timeline

  1. CVE published
  2. First seen by cve.now
  3. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  4. Record last updated

Affected versions

  • samtools htslib

    through 1.24

References 7

GitHub · samtools/htslib

hackmd.io

vulncheck.com