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

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CVE-2026-31971— HTSlib CRAM decoder vulnerable to buffer overflow

EPSS 0.14% · P34
Get alerts for future matching vulnerabilitiesLog in to subscribe

I. Basic Information for CVE-2026-31971

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 CRAM decoder vulnerable to buffer overflow
Source: NVD (National Vulnerability Database)
Vulnerability Description
HTSlib is a library for reading and writing bioinformatics file formats. CRAM is a compressed format which stores DNA sequence alignment data using a variety of encodings and compression methods. When reading data encoded using the `BYTE_ARRAY_LEN` method, the `cram_byte_array_len_decode()` failed to validate that the amount of data being unpacked matched the size of the output buffer where it was to be stored. Depending on the data series being read, this could result either in a heap or a stack overflow with attacker-controlled bytes. Depending on the data stream this could result either in a heap buffer overflow or a stack overflow. If a user opens a file crafted to exploit this issue it could lead to the program crashing, overwriting of data structures on the heap or stack in ways not expected by the program, or changing the control flow of the program. It may be possible to use this to obtain arbitrary code execution. Versions 1.23.1, 1.22.2 and 1.21.1 include fixes for this issue. There is no workaround for this issue.
Source: NVD (National Vulnerability Database)
CVSS Information
N/A
Source: NVD (National Vulnerability Database)
Vulnerability Type
栈缓冲区溢出
Source: NVD (National Vulnerability Database)
Vulnerability Title
HTSlib 安全漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
HTSlib是samtools开源的一个C语言的库文件。 HTSlib 1.23.1之前版本、1.22.2之前版本和1.21.1之前版本存在安全漏洞,该漏洞源于cram_byte_array_len_decode函数未验证数据量,可能导致堆缓冲区溢出或栈溢出。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

VendorProductAffected VersionsCPESubscribe
samtoolshtslib < 1.21.1 -

II. Public POCs for CVE-2026-31971

#POC DescriptionSource LinkShenlong Link
AI-Generated POCPremium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-31971

登录查看更多情报信息。

Same Patch Batch · samtools · 2026-03-18 · 12 CVEs total

CVE-2026-31962HTSlib CRAM reader has heap buffer overflow due to improper validation of input
CVE-2026-31964HTSlib CRAM decoder has a NULL Pointer Dereference
CVE-2026-31963HTSlib CRAM reader has heap buffer overflow due to improper validation of input
CVE-2026-31965HTSlib CRAM reader has out-of-bounds reads due to improper validation of input
CVE-2026-31966HTSlib CRAM reader has out-of-bounds read due to improper validation of input
CVE-2026-31967HTSlib CRAM reader has out-of-bounds read due to improper validation of input
CVE-2026-31968HTSlib CRAM decoder vulnerable to buffer overflow
CVE-2026-31969HTSlib CRAM decoder has a heap buffer overflow
CVE-2026-31970HTSlib BGZF index file reader has a heap buffer overflow
CVE-2026-31973NULL pointer dereference in samtools cram-size
CVE-2026-31972samtools mpileup has use-after-free leading to an invalid read

IV. Related Vulnerabilities

V. Comments for CVE-2026-31971

No comments yet


Leave a comment