CyberIntel ⬡ News
★ Saved ◆ Cyber Reads
← Back ⬡ Vulnerabilities & CVEs Mar 18, 2026

CVE-2026-31968 | samtools htslib up to 1.21.0/1.22.1/1.23 stack-based overflow

VulDB Archived Mar 18, 2026 ✓ Full text saved

A vulnerability marked as critical has been reported in samtools htslib up to 1.21.0/1.22.1/1.23 . This vulnerability affects unknown code. This manipulation causes stack-based buffer overflow. This vulnerability is tracked as CVE-2026-31968 . The attack is only possible within the local network. No exploit exists. It is suggested to upgrade the affected component.

Full text archived locally
✦ AI Summary · Claude Sonnet


    VDB-351608 · CVE-2026-31968 · GCVE-0-2026-31968 SAMTOOLS HTSLIB UP TO 1.21.0/1.22.1/1.23 STACK-BASED OVERFLOW HISTORYDIFFRELATEJSONXMLCTI CVSS Meta Temp Score Current Exploit Price (≈) CTI Interest Score 6.0 $0-$5k 0.96+ Summaryinfo A vulnerability described as critical has been identified in samtools htslib up to 1.21.0/1.22.1/1.23. This issue affects some unknown processing. Such manipulation leads to stack-based overflow. This vulnerability is listed as CVE-2026-31968. The attack must be carried out from within the local network. There is no available exploit. Upgrading the affected component is recommended. Detailsinfo A vulnerability was found in samtools htslib up to 1.21.0/1.22.1/1.23 and classified as critical. Affected by this issue is an unknown code block. The manipulation with an unknown input leads to a stack-based overflow vulnerability. Using CWE to declare the problem leads to CWE-121. A stack-based buffer overflow condition is a condition where the buffer being overwritten is allocated on the stack (i.e., is a local variable or, rarely, a parameter to a function). Impacted is confidentiality, integrity, and availability. CVE summarizes: 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. For the `VARINT` and `CONST` encodings, incomplete validation of the context in which the encodings were used could result in up to eight bytes being written beyond the end of a heap allocation, or up to eight bytes being written to the location of a one byte variable on the stack, possibly causing the values to adjacent variables to change unexpectedly. 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. The advisory is shared for download at github.com. This vulnerability is handled as CVE-2026-31968 since 03/10/2026. The exploitation is known to be easy. Access to the local network is required for this attack. No form of authentication is required for exploitation. There are neither technical details nor an exploit publicly 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: 6.3 VulDB Meta Temp Score: 6.0 VulDB Base Score: 6.3 VulDB Temp Score: 6.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: Stack-based overflow CWE: CWE-121 / 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-31968 (🔒) GCVE (CVE): GCVE-0-2026-31968 GCVE (VulDB): GCVE-100-351608 Entryinfo Created: 03/18/2026 20:59 Changes: 03/18/2026 20:59 (66) Complete: 🔍 Cache ID: 99:D00:101 Discussion No comments yet. Languages: en. Please log in to comment. ◂ PreviousOverviewNext ▸
    💬 Team Notes
    Article Info
    Source
    VulDB
    Category
    ⬡ Vulnerabilities & CVEs
    Published
    Mar 18, 2026
    Archived
    Mar 18, 2026
    Full Text
    ✓ Saved locally
    Open Original ↗