Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
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-31965

CVE-2026-31965: Htslib Information Disclosure Vulnerability

CVE-2026-31965 is an information disclosure flaw in Htslib that allows out-of-bounds reads in CRAM file processing, potentially leaking data or causing crashes. This article covers technical details, affected versions, and patches.

Published: March 20, 2026

CVE-2026-31965 Overview

CVE-2026-31965 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 when processing CRAM (Compressed Reference-oriented Alignment Map) files containing DNA sequence alignment data. Due to insufficient validation of the reference ID field, two out-of-bounds reads can occur before the invalid data is detected, potentially leaking memory values or causing program crashes.

Critical Impact

Network-accessible out-of-bounds read vulnerability can leak sensitive memory values and cause denial of service in bioinformatics applications processing untrusted 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 (fixed in 1.23.1)

Discovery Timeline

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

Technical Details for CVE-2026-31965

Vulnerability Analysis

The vulnerability resides in HTSlib's CRAM file decoder, specifically within the cram_decode_slice() function. CRAM is a compressed format designed for efficient storage of DNA sequence alignment data, commonly used in bioinformatics pipelines and genomic research applications.

The core issue stems from a validation timing problem where the reference ID field and mate reference ID are not properly checked before being used to access memory. This allows an attacker who can supply a maliciously crafted CRAM file to trigger two separate out-of-bounds read operations. While the function does eventually report an error when detecting the invalid data, the memory accesses have already occurred by that point.

The impact includes potential information disclosure where two values from unauthorized memory locations could be leaked to the caller, and denial of service through program crashes when attempting to access invalid memory addresses.

Root Cause

The root cause is improper input validation (CWE-125: Out-of-bounds Read) where the reference ID field validation occurred too late in the processing sequence. The cram_decode_slice() function performed memory access operations using the reference ID and mate reference ID values before verifying they fell within valid bounds, creating a window for exploitation.

Attack Vector

An attacker can exploit this vulnerability by crafting a malicious CRAM file with invalid reference ID fields and delivering it to a target system running vulnerable versions of HTSlib. The attack is network-accessible, requiring no authentication or user interaction beyond processing the malicious file. Exploitation scenarios include:

  1. Uploading malicious CRAM files to bioinformatics processing pipelines
  2. Submitting crafted files to genomic data analysis services
  3. Compromising shared research datasets with malformed CRAM records

The security patch adds more comprehensive checks for valid CRAM reference ID and mate reference ID values before any memory access occurs:

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

Detection Methods for CVE-2026-31965

Indicators of Compromise

  • Unexpected crashes in applications using HTSlib when processing CRAM files
  • Memory access violations or segmentation faults during CRAM file decoding operations
  • Error messages from cram_decode_slice() function indicating invalid reference IDs
  • Anomalous CRAM files with malformed reference ID fields in file processing queues

Detection Strategies

  • Implement file integrity monitoring for CRAM files entering bioinformatics pipelines
  • Monitor application logs for repeated errors from HTSlib CRAM decoding functions
  • Deploy runtime application self-protection (RASP) to detect memory access anomalies
  • Use static analysis tools to identify vulnerable HTSlib versions in deployed applications

Monitoring Recommendations

  • Enable verbose logging for bioinformatics applications processing external CRAM files
  • Implement memory sanitizers (AddressSanitizer) in development and testing environments
  • Monitor for unusual patterns in CRAM file submissions from external sources
  • Track HTSlib version deployments across infrastructure for vulnerability management

How to Mitigate CVE-2026-31965

Immediate Actions Required

  • Upgrade HTSlib to patched versions: 1.23.1, 1.22.2, or 1.21.1 depending on your version branch
  • Audit systems to identify all applications and pipelines using vulnerable HTSlib versions
  • Implement input validation for CRAM files from untrusted sources before processing
  • Consider temporarily restricting CRAM file processing from external/untrusted sources until patching is complete

Patch Information

The HTSlib development team has released security patches across multiple version branches. The fix adds comprehensive validation checks for CRAM reference ID and mate reference ID fields before any memory access operations occur in the cram_decode_slice() function.

Fixed Versions:

  • 1.23.1 (for 1.23.x branch)
  • 1.22.2 (for 1.22.x branch)
  • 1.21.1 (for 1.21.x branch)

Patches are available through the GitHub Security Advisory and the commit fix.

Workarounds

  • No workaround is available for this vulnerability according to the vendor advisory
  • Upgrading to a patched version is the only remediation path
  • As a temporary measure, restrict processing of CRAM files to trusted sources only
  • Consider implementing additional file validation layers before HTSlib processing
bash
# Check installed HTSlib version
htsfile --version

# Update HTSlib via package manager (example for apt-based systems)
sudo apt update && sudo apt install htslib

# Or compile from source with the patched version
git clone https://github.com/samtools/htslib.git
cd htslib
git checkout 1.23.1
make && sudo 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.04%

  • 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
  • Related CVEs
  • CVE-2026-31966: HTSlib Information Disclosure Flaw

  • CVE-2026-31967: 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