CVE-2026-31966 | samtools htslib up to 1.21.0/1.22.1/1.23 cram_decode_seq out-of-bounds
VulDBArchived Mar 18, 2026✓ Full text saved
A vulnerability described as problematic has been identified in samtools htslib up to 1.21.0/1.22.1/1.23 . This issue affects the function cram_decode_seq . Such manipulation leads to out-of-bounds read. This vulnerability is listed as CVE-2026-31966 . The attack may be performed from remote. There is no available exploit. Upgrading the affected component is recommended.
Full text archived locally
✦ AI Summary· Claude Sonnet
VDB-351609 · CVE-2026-31966 · GCVE-0-2026-31966
SAMTOOLS HTSLIB UP TO 1.21.0/1.22.1/1.23 CRAM_DECODE_SEQ OUT-OF-BOUNDS
HISTORYDIFFRELATEJSONXMLCTI
CVSS Meta Temp Score Current Exploit Price (≈) CTI Interest Score
7.0 $0-$5k 1.23+
Summaryinfo
A vulnerability classified as problematic has been found in samtools htslib up to 1.21.0/1.22.1/1.23. Impacted is the function cram_decode_seq. Performing a manipulation results in out-of-bounds. This vulnerability is cataloged as CVE-2026-31966. It is possible to initiate the attack remotely. There is no exploit available. It is recommended to upgrade the affected component.
Detailsinfo
A vulnerability was found in samtools htslib up to 1.21.0/1.22.1/1.23. It has been classified as critical. This affects the function cram_decode_seq. The manipulation with an unknown input leads to a out-of-bounds vulnerability. CWE is classifying the issue as CWE-125. The product reads data past the end, or before the beginning, of the intended buffer. This is going to have an impact on confidentiality, integrity, and availability. The summary by CVE is:
HTSlib is a library for reading and writing bioinformatics file formats. CRAM is a compressed format which stores DNA sequence alignment data. As one method of removing redundant data, CRAM uses reference-based compression so that instead of storing the full sequence for each alignment record it stores a location in an external reference sequence along with a list of differences to the reference at that location as a sequence of "features". When decoding CRAM records, the reference data is stored in a char array, and parts matching the alignment record sequence are copied over as necessary. Due to insufficient validation of the feature data series, it was possible to make the `cram_decode_seq()` function copy data from either before the start, or after the end of the stored reference either into the buffer used to store the output sequence for the cram record, or into the buffer used to build the SAM `MD` tag. This allowed arbitrary data to be leaked to the calling function. This bug may allow information about program state to be leaked. It may also cause a program crash through an attempt to access invalid memory. Versions 1.23.1, 1.22.2 and 1.21.1 include fixes for this issue. There is no workaround for this issue.
The advisory is shared at github.com. This vulnerability is uniquely identified as CVE-2026-31966 since 03/10/2026. The exploitability is told to be easy. It is possible to initiate the attack remotely. No form of authentication is needed for exploitation. Technical details are known, but no exploit is available.
Upgrading to version 1.21.1 or 1.22.2 eliminates this vulnerability.
Productinfo
Vendor
samtools
Name
htslib
Version
1.0
1.1
1.2
1.3
1.4
1.5
1.6
1.7
1.8
1.9
1.10
1.11
1.12
1.13
1.14
1.15
1.16
1.17
1.18
1.19
1.20
1.21
1.21.0
1.22
1.22.0
1.22.1
1.23
Website
Product: https://github.com/samtools/htslib/
CPE 2.3info
🔒
🔒
🔒
CPE 2.2info
🔒
🔒
🔒
CVSSv4info
VulDB Vector: 🔒
VulDB Reliability: 🔍
CNA CVSS-B Score: 🔒
CNA CVSS-BT Score: 🔒
CNA Vector: 🔒
CVSSv3info
VulDB Meta Base Score: 7.3
VulDB Meta Temp Score: 7.0
VulDB Base Score: 7.3
VulDB Temp Score: 7.0
VulDB Vector: 🔒
VulDB Reliability: 🔍
CVSSv2info
Vector Complexity Authentication Confidentiality Integrity Availability
Unlock Unlock Unlock Unlock Unlock Unlock
Unlock Unlock Unlock Unlock Unlock Unlock
Unlock Unlock Unlock Unlock Unlock Unlock
VulDB Base Score: 🔒
VulDB Temp Score: 🔒
VulDB Reliability: 🔍
Exploitinginfo
Class: Out-of-bounds
CWE: CWE-125 / CWE-119
CAPEC: 🔒
ATT&CK: 🔒
Physical: No
Local: No
Remote: Yes
Availability: 🔒
Status: Not defined
Price Prediction: 🔍
Current Price Estimation: 🔒
0-Day Unlock Unlock Unlock Unlock
Today Unlock Unlock Unlock Unlock
Threat Intelligenceinfo
Interest: 🔍
Active Actors: 🔍
Active APT Groups: 🔍
Countermeasuresinfo
Recommended: Upgrade
Status: 🔍
0-Day Time: 🔒
Upgrade: htslib 1.21.1/1.22.2
Timelineinfo
03/10/2026 CVE reserved
03/18/2026 +8 days Advisory disclosed
03/18/2026 +0 days VulDB entry created
03/18/2026 +0 days VulDB entry last update
Sourcesinfo
Product: github.com
Advisory: github.com
Status: Confirmed
CVE: CVE-2026-31966 (🔒)
GCVE (CVE): GCVE-0-2026-31966
GCVE (VulDB): GCVE-100-351609
Entryinfo
Created: 03/18/2026 20:59
Changes: 03/18/2026 20:59 (67)
Complete: 🔍
Cache ID: 99:F58:101
Discussion
No comments yet. Languages: en.
Please log in to comment.
◂ PreviousOverviewNext ▸