The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-31967

CVE-2026-31967: Htslib Information Disclosure Flaw

CVE-2026-31967 is an information disclosure vulnerability in Htslib affecting CRAM file processing that enables out-of-bounds reads and potential memory leaks. This article covers technical details, affected versions, and patches.

Published: March 20, 2026

CVE-2026-31967 Overview

CVE-2026-31967 is an Out-of-Bounds Read vulnerability affecting HTSlib, a widely-used library for reading and writing bioinformatics file formats. The vulnerability exists in the cram_decode_slice() function, which is called during the processing of CRAM (Compressed Reference-oriented Alignment Map) files. CRAM is a compressed format used for storing DNA sequence alignment data.

The flaw occurs because the mate reference ID field value is not properly validated during CRAM record decoding. When this unvalidated value is subsequently used—such as during conversion to SAM format—it can result in out-of-bounds array reads when looking up corresponding reference names. This can lead to information leakage about program state and potential program crashes due to invalid memory access attempts.

Critical Impact

Exploitation of this vulnerability may leak sensitive program state information and cause denial of service through memory access violations in bioinformatics applications processing malicious CRAM files.

Affected Products

  • HTSlib versions prior to 1.21.1
  • HTSlib versions 1.22.x prior to 1.22.2
  • HTSlib version 1.23

Discovery Timeline

  • 2026-03-18 - CVE CVE-2026-31967 published to NVD
  • 2026-03-19 - Last updated in NVD database

Technical Details for CVE-2026-31967

Vulnerability Analysis

This vulnerability is classified as CWE-125 (Out-of-Bounds Read). The root issue stems from insufficient input validation in the CRAM file parsing logic within HTSlib. When processing CRAM records, the library reads a mate reference ID field from the input file without verifying that this value falls within the valid bounds of the reference name array.

The impact of this vulnerability is twofold. First, if the out-of-bounds array read returns a value that happens to be interpretable as a valid memory pointer, the library will attempt to dereference it as a string pointer during SAM format conversion. This behavior could expose memory contents that should not be accessible, resulting in information disclosure about the program's internal state. Second, if the accessed memory location is invalid or protected, the resulting access violation will crash the application, causing a denial of service condition.

The network-based attack vector indicates that exploitation can occur by delivering malicious CRAM files to applications using vulnerable HTSlib versions, such as through web-based bioinformatics pipelines or file processing services.

Root Cause

The vulnerability originates from missing bounds checking on the mate reference ID field in the cram_decode_slice() function within cram/cram_decode.c. When CRAM records are decoded, the mate reference ID is read from the file without validation against the actual size of the reference name array. This allows an attacker to craft a CRAM file with an out-of-bounds mate reference ID value, triggering memory access outside the intended array boundaries.

Attack Vector

An attacker can exploit this vulnerability by crafting a malicious CRAM file containing an invalid mate reference ID value. When a vulnerable application processes this file—particularly when converting CRAM data to SAM format—the out-of-bounds read is triggered. The attack can be delivered through any mechanism that causes the target system to process attacker-controlled CRAM files, including:

  • Direct file upload to bioinformatics processing pipelines
  • Network-based file transfer services
  • Automated data ingestion systems in genomics research environments

The security patch adds validation checks for both the CRAM ref ID and mate ref ID fields to ensure they fall within valid bounds before use:

c
/*
-Copyright (c) 2012-2020, 2022-2025 Genome Research Ltd.
+Copyright (c) 2012-2020, 2022-2026 Genome Research Ltd.
 Author: James Bonfield <jkb@sanger.ac.uk>

 Redistribution and use in source and binary forms, with or without

Source: GitHub Commit Update

Detection Methods for CVE-2026-31967

Indicators of Compromise

  • Unexpected application crashes when processing CRAM files, particularly with segmentation faults or access violations
  • Memory access errors logged during CRAM to SAM format conversions
  • Unusual CRAM files with abnormally large or negative mate reference ID values

Detection Strategies

  • Implement file integrity checking for incoming CRAM files before processing
  • Monitor bioinformatics applications for abnormal memory access patterns or unexpected crashes during file processing
  • Deploy application-level logging to capture CRAM parsing errors and reference ID validation failures

Monitoring Recommendations

  • Enable verbose logging in applications using HTSlib to capture parsing errors and validation failures
  • Monitor system logs for segmentation faults or memory access violations in bioinformatics tools
  • Establish alerting for repeated crashes in CRAM file processing workflows

How to Mitigate CVE-2026-31967

Immediate Actions Required

  • Upgrade HTSlib to patched versions: 1.23.1, 1.22.2, or 1.21.1 depending on your version branch
  • Review and audit any systems processing untrusted CRAM files for potential exposure
  • Implement input validation at the application layer to supplement library-level fixes

Patch Information

HTSlib has released security patches in versions 1.23.1, 1.22.2, and 1.21.1 that add proper bounds checking for CRAM reference ID and mate reference ID fields. The fix ensures these values are validated against the reference name array size before use. Detailed information is available in the GitHub Security Advisory GHSA-33x5-c6vj-8f2w and the GitHub Commit Update.

Workarounds

  • There is no workaround for this vulnerability according to the vendor advisory
  • Organizations must upgrade to the patched versions to remediate this issue
  • Consider isolating systems that process untrusted CRAM files until patches can be applied
bash
# Upgrade HTSlib to patched version
# For systems using version 1.23.x:
git clone https://github.com/samtools/htslib.git
cd htslib
git checkout tags/1.23.1
make && make install

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeInformation Disclosure

  • Vendor/TechHtslib

  • SeverityMEDIUM

  • CVSS Score6.9

  • EPSS Probability0.01%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityLow
  • CWE References
  • CWE-125
  • Vendor Resources
  • GitHub Commit Update

  • GitHub Security Advisory GHSA-33x5-c6vj-8f2w
  • Related CVEs
  • CVE-2026-31965: Htslib Information Disclosure Vulnerability

  • CVE-2026-31966: HTSlib Information Disclosure Flaw

  • CVE-2026-31968: Htslib Buffer Overflow Vulnerability

  • CVE-2026-31962: Htslib CRAM Buffer Overflow Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English