Out-of-Bounds Read and Write Vulnerability in HTSlib by Samtools
CVE-2026-62257

8.8HIGH

Key Information:

Vendor

Samtools

Status
Vendor
CVE Published:
19 November 2026

What is CVE-2026-62257?

HTSlib, a library designed for reading and writing bioinformatics file formats, contains a vulnerability in its experimental CRAM v4 XPACK and XRLE decoders. In versions prior to 1.21.2, 1.22.3, 1.23.2, and 1.24, the library improperly handles block pointers. Specifically, an attacker could exploit this flaw through crafted input files, causing an out-of-bounds read. This may lead to reading invalid memory and potentially crashing the application. Furthermore, a null value could result in faulty memory allocation, leading to an out-of-bounds write, which might compromise the application's heap state and allow arbitrary code execution. Users are strongly advised to upgrade to the latest versions to mitigate this risk.

Affected Version(s)

htslib < 1.21.2 < 1.21.2

htslib >= 1.22.0, < 1.22.3 < 1.22.0, 1.22.3

htslib >= 1.23.0, < 1.23.2 < 1.23.0, 1.23.2

References

CVSS V4

Score:
8.8
Severity:
HIGH
Confidentiality:
None
Integrity:
High
Availability:
Low
Attack Vector:
Network
Attack Complexity:
Low
Attack Required:
None
Privileges Required:
Undefined
User Interaction:
None

Timeline

  • Vulnerability published

  • Vulnerability Reserved

.