PatchSiren

PatchSiren cyber security CVE debrief

CVE-2026-116742 samtools CVE debrief

A heap out-of-bounds write and read vulnerability exists in HTSlib through 1.24. The vulnerability is caused by a crafted .gzi index entry count that can corrupt heap memory. This vulnerability affects tools like samtools and bcftools. Defenders should prioritize patching or upgrading to a fixed version of HTSlib to prevent heap corruption or crashes. The vulnerability can cause significant disruptions to operations relying on these tools. Affected deployments should be identified and owners assigned for follow-up. Official advisories and CVE records should be reviewed to validate affected scope, severity, and vendor guidance.

Vendor
samtools
Product
htslib
CVSS
MEDIUM 4.8
CISA KEV
Not listed in stored evidence
Original CVE published
2026-10-26
Original CVE updated
2026-10-27
Advisory published
2026-10-26
Advisory updated
2026-10-27

Who should care

Defenders responsible for maintaining and securing tools like samtools and bcftools should prioritize patching or upgrading to a fixed version of HTSlib. This includes operators, platform administrators, vulnerability management teams, and security teams. The vulnerability can cause significant disruptions to operations relying on these tools, and affected deployments should be identified and owners assigned for follow-up.

Why it matters

Defenders should prioritize patching or upgrading to a fixed version of HTSlib, as the vulnerability can cause heap corruption or crashes in tools like samtools and bcftools.

  • Heap corruption or crashes in tools like samtools and bcftools
  • Potential for attackers to exploit the vulnerability to corrupt heap memory

Technical summary

The vulnerability is caused by a crafted .gzi index entry count that can corrupt heap memory. 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. The vulnerability affects tools relying on HTSlib, such as samtools and bcftools. Defenders should prioritize patching or upgrading to a fixed version of HTSlib to prevent heap corruption or crashes. The issue has been tracked and patched by the vendor.

Defensive priority

Defenders should prioritize patching or upgrading to a fixed version of HTSlib, as the vulnerability can cause heap corruption or crashes.

Recommended defensive actions

  • Patch or upgrade to a fixed version of HTSlib
  • Review and update affected tools like samtools and bcftools
  • Monitor for potential heap corruption or crashes
  • Confirm whether affected product deployments exist in managed environments and assign an owner for follow-up
  • Review the supplied official advisory or CVE record to validate affected scope, severity, and vendor guidance
  • Plan vendor-supported updates or mitigations through normal change control where exposure is confirmed
  • Check relevant monitoring, detection, and logs for exposed assets that need extra review

Evidence notes

The vulnerability is caused by a crafted .gzi index entry count that can corrupt heap memory. 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. The issue has been tracked and patched by the vendor. Official CVE and NVD records provide additional context. Defenders should verify affected scope and apply patches or mitigations accordingly. Compensating controls may be necessary for short-

Sources and references

Verified primary and authoritative sources

  • CVE-2026-116742 CVE Program record

    Publisher, destination, and source semantics verified

    URL: https://www.cve.org/CVERecord?id=CVE-2026-116742

    CVE Program - Official CVE Program record with source-provided CVE metadata.

  • CVE-2026-116742 NVD vulnerability detail

    Publisher, destination, and source semantics verified

    URL: https://nvd.nist.gov/vuln/detail/CVE-2026-116742

    NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.

Supplemental references

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

    Unverified legacy reference

    URL: https://raw.githubusercontent.com/CVEProject/cvelistV5/main/cves/2026/116xxx/CVE-2026-116742.json

    cve_program_cvelist_v5

  • Source reference

    Unverified legacy reference

    URL: https://github.com/samtools/htslib/pull/2057

    Supplemental source - issue-tracking, patch

  • Source reference

    Unverified legacy reference

    URL: https://github.com/samtools/htslib/commit/18dddf02bb2c0053b32acec427723555a24b2873

    Supplemental source - patch

  • Source reference

    Unverified legacy reference

    URL: https://github.com/samtools/htslib

    Supplemental source - product

  • Source reference

    Unverified legacy reference

    URL: https://github.com/samtools/htslib/blob/1.24/bgzf.c

    Supplemental source - technical-description

  • Source reference

    Unverified legacy reference

    URL: https://hackmd.io/@haindpwn/htslib-bgzf-gzi-int-truncation-oob

    Supplemental source - third-party-advisory

  • Source reference

    Unverified legacy reference

    URL: https://github.com/samtools/htslib/issues/2113

    Supplemental source - issue-tracking

  • Source reference

    Unverified legacy reference

    URL: https://www.vulncheck.com/advisories/htslib-through-1.24-heap-out-of-bounds-write-via-truncated-gzi-index-count

    Supplemental source - third-party-advisory

Methodology and review provenance

AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.