Numeric Truncation Error Affecting htslib package, versions *


Severity

Recommended
0.0
medium
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
0.16% (5th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-DEBIANUNSTABLE-HTSLIB-21817878
  • published29 Oct 2026
  • disclosed26 Oct 2026

Introduced: 26 Oct 2026

NewCVE-2026-116742  (opens in a new tab)
CWE-197  (opens in a new tab)

How to fix?

There is no fixed version for Debian:unstable htslib.

NVD Description

Note: Versions mentioned in the description apply only to the upstream htslib package and not the htslib package as distributed by Debian. See How to fix? for Debian:unstable relevant fixed versions and status.

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.

CVSS Base Scores

version 3.1