Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-116742— HTSlib through 1.24 Heap Out-of-Bounds Write via Truncated .gzi Index Count

Quick assessment

Affected
samtools htslib
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

HTSlib 1.24 及更早版本在 bgzf.c 的 bgzf_index_load_hfile() 函数中存在堆越界写入和读取漏洞。攻击者可通过提供精心构造的 .gzi 索引条目计数来破坏堆内存。当该计数值为 0xFFFFFFFF 时,noffs 会被截断为零,导致在 malloc(0) 分配的缓冲区之后进行写入,并在 bgzf_useek() 中执行 offs[-1] 读取,从而引发堆内存损坏或导致 samtools、bcftools 等工具崩溃。

CVSS 4.4 · Medium EPSS 0.12% · P2

Possible ATT&CK Techniques 1 AI

T1203 · Exploitation for Client Execution

Affected Version Matrix 1

VendorProduct Version RangeStatus
samtools htslib ≤ 1.24 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-116742

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
HTSlib through 1.24 Heap Out-of-Bounds Write via Truncated .gzi Index Count
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L
Source: CVE Program / CVE List V5
Vulnerability Type
数值截断错误
Source: CVE Program / CVE List V5

Affected Products

Vendor Product Affected Versions CPE Subscribe
samtools htslib 0 ~ 1.24 -

II. Public POCs for CVE-2026-116742

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-116742

请登录查看更多情报信息。

Patches & Fixes for CVE-2026-116742 (2)

Vendor Advisories for CVE-2026-116742 (1)

Vendor Pages for CVE-2026-116742 (1)

Other References for CVE-2026-116742 (1)

IV. Related Vulnerabilities