CVE-2026-62256: high-severity vulnerability in samtools htslib
HTSlib: Heap write overflow in HTSlib FASTA index handling
Published
E-mail alert when it lands in KEV, gets a public PoC or its score goes up.
21Vexday Risk Score
No sign of exploitation. No public exploitation artifact known so far.
ssvc Trackcvss 7.1epss 0.4%
HTSlib is a library for reading and writing bioinformatics file formats. Prior to 1.21.2, 1.22.3, 1.23.2, and 1.24, fai_retrieve does not verify that the line width recorded in a FASTA .fai index is greater than or equal to the number of bases per line. When the line width is exactly one less than the base count, retrieval allocates an undersized heap buffer and writes one byte beyond its end; larger discrepancies instead cause an allocation failure that is handled. This issue can corrupt heap memory and crash the process. This issue is fixed in versions 1.21.2, 1.22.3, 1.23.2, and 1.24.
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N
Affected products
samtools · htslibRelated CVEs — samtools htslib
In the same product, most dangerous first.
CVE-2026-63390HIGHHTSlib: Heap buffer overflow in BCF reader due to improper validation of input.EPSS 0.9%CVE-2026-62258HIGHHTSlib: Stack write overflow in HTSlib CRAM decoderEPSS 0.8%CVE-2026-62257HIGHHTSlib: Heap read and write overflow in HTSlib CRAM 4.0 decoderEPSS 0.8%CVE-2026-62255HIGHHTSlib: Heap write overflow in HTSlib CRAM index handlingEPSS 0.6%CVE-2026-31966MEDIUMHTSlib CRAM reader has out-of-bounds read due to improper validation of inputEPSS 0.6%CVE-2026-62260MEDIUMHTSlib: Out-of-bounds read in HTSlib CRAM 3.x and 4.0 readers due to improper validation of inputEPSS 0.5%
References
https://github.com/samtools/htslib/commit/4af640f9ffd7f1fac95a739df7f560e3e5557960https://github.com/samtools/htslib/commit/504fb841b70afb948f58089c3a4337ce875c1e52https://github.com/samtools/htslib/commit/567fd43c6ef938de53c98217f99336e3ce5a60abhttps://github.com/samtools/htslib/commit/cdf22929aad8dde719c1b2070ad565ac9dd76c02https://github.com/samtools/htslib/pull/2008https://github.com/samtools/htslib/releases/tag/1.21.2https://github.com/samtools/htslib/releases/tag/1.22.3https://github.com/samtools/htslib/releases/tag/1.23.2https://github.com/samtools/htslib/releases/tag/1.24https://github.com/samtools/htslib/security/advisories/GHSA-4hjq-r829-8c8v