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

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-31964— HTSlib CRAM decoder has a NULL Pointer Dereference

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是samtools开源的一个C语言的库文件。 HTSlib 1.23.1之前版本、1.22.2之前版本和1.21.1之前版本存在代码问题漏洞,该漏洞源于CONST、XPACK和XRLE编码未正确处理接口,可能导致空指针取消引用。

AI Predicted 6.5 Difficulty: Easy EPSS 0.34% · P27

Possible ATT&CK Techniques 1 AI

T1190 · Exploit Public-Facing Application
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-31964

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 has a NULL Pointer Dereference
Source: CVE Program / CVE List V5
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. While most alignment records store DNA sequence and quality values, the format also allows them to omit this data in certain cases to save space. Due to some quirks of the CRAM format, it is necessary to handle these records carefully as they will actually store data that needs to be consumed and then discarded. Unfortunately the `CONST`, `XPACK` and `XRLE` encodings did not properly implement the interface needed to do this. Trying to decode records with omitted sequence or quality data using these encodings would result in an attempt to write to a NULL pointer. Exploiting this bug causes a NULL pointer dereference. Typically this will cause the program to crash. Versions 1.23.1, 1.22.2 and 1.21.1 include fixes for this issue. There is no workaround for this issue.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N
Source: CVE Program / CVE List V5
Vulnerability Type
空指针解引用
Source: CVE Program / CVE List V5
Vulnerability Title
HTSlib 代码问题漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
HTSlib是samtools开源的一个C语言的库文件。 HTSlib 1.23.1之前版本、1.22.2之前版本和1.21.1之前版本存在代码问题漏洞,该漏洞源于CONST、XPACK和XRLE编码未正确处理接口,可能导致空指针取消引用。
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

Vendor Product Affected Versions CPE Subscribe
samtools htslib < 1.21.1 -

II. Public POCs for CVE-2026-31964

# 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-31964

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

Patches & Fixes for CVE-2026-31964 (1)

Vendor Advisories for CVE-2026-31964 (1)

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

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

IV. Related Vulnerabilities