Memory Corruption Vulnerability in HTSlib Library by Samtools
CVE-2026-62255
7.1HIGH
What is CVE-2026-62255?
The HTSlib library, utilized for reading and writing bioinformatics file formats, harbors a vulnerability in the cram_index_load function prior to versions 1.21.2, 1.22.3, 1.23.2, and 1.24. This flaw allows for unbounded index-array allocation due to inadequate verification of reference sequences in a CRAM .crai index. Consequently, this oversights can lead to conditions where the index can trigger memory corruption or denial of service, particularly when the number of references approaches critical limits. The issue has been resolved in the aforementioned versions, making it imperative for users to update to maintain security.
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
