Heap Memory Corruption in HTSlib Bioinformatics Library
CVE-2026-62256

7.1HIGH

Key Information:

Vendor

Samtools

Status
Vendor
CVE Published:
19 November 2026

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

References

CVSS V4

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

Timeline

  • Vulnerability published

  • Vulnerability Reserved

.