CVE-2026-31967: Vulnerability in Htslib

Critical. HTSlib is a library for reading and writing bioinformatics file formats. CRAM is a compressed format which stores DNA sequence alignment data. In the cram_decode_slice() function called while reading CRAM records, the value of the mate reference id field was not validated. Later use of this value, for example when converting the data to SAM format, could result in the out of bounds array reads when looking up the...

CWE-125, CWE-129

Exploitation
None confirmed
Severity
9.1 of 10
Attack likelihood
Unknown
Fix
Fixed version known
Patch deadline
No deadline set

Details

Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
Weakness
CWE-125, CWE-129
Published
18 Mar 2026
Last change
17 Jun 2026

Affected products

Affected versions and the first fixed release

  • Htslib Before 1.21.1; From 1.22 before 1.22.2; Version 1.23. Fixed in 1.21.1, 1.22.2

Advisories

Vendor and security advisories

Patches and fixes

Updates, commits and release notes

Related