Heap Memory Corruption in HTSlib Bioinformatics Library
CVE-2026-62256
What is CVE-2026-62256?
The HTSlib library, utilized for handling various bioinformatics file formats, exhibits a buffer overflow vulnerability within the fai_retrieve function. This flaw arises due to a lack of validation for the line width recorded in FASTA .fai indices, which can result in the allocation of an undersized heap buffer. When there is a mismatch between the line width and base count, particularly when the width is exactly one less than the number of bases, it leads to memory corruption and potential process crashes. This issue has been rectified in HTSlib versions 1.21.2, 1.22.3, 1.23.2, and 1.24, emphasizing the importance of upgrading to these versions to mitigate risks.
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
