CVE-2026-62257: high-severity vulnerability in samtools htslib
HTSlib: Heap read and write overflow in HTSlib CRAM 4.0 decoder
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 8.8epss 0.8%
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, the experimental CRAM v4 XPACK and XRLE decoders cache expanded block pointers at indexes beyond the 512-element slice->block_by_id array. An array index partially controlled by data in the input file first causes an out-of-bounds read to determine whether a block is cached; a null value then causes allocation of a block and an out-of-bounds pointer write to the same element. The invalid read may crash the process, while the write may corrupt heap state and could permit arbitrary code execution. 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:N/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-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%CVE-2026-62259MEDIUMHTSlib: Out-of-bounds read in HTSlib CRAM 4.0 reader due to improper validation of inputEPSS 0.5%
References
https://github.com/samtools/htslib/commit/a3e8dca14dcfdc6167281721ede6d6ecd3395badhttps://github.com/samtools/htslib/commit/c0b50372ed133c650fa0a641607da5cde46bcd8chttps://github.com/samtools/htslib/commit/d66a77dbf8f52f7f44efd7929a28b94bbfc17f2fhttps://github.com/samtools/htslib/pull/2020https://github.com/samtools/htslib/pull/2046https://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-6q7c-m967-9v37