CVE-2026-62257HTSlib: Heap read and write overflow in HTSlib CRAM 4.0 decoder
- 8.8HighCVSS base score
- 0.77%Exploitation in 30 daysEPSS · top 43% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- NonePublic exploitsnone known yet
Description
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.
Timeline
ID reserved
By GitHub_M
- 4 months later
· 4 months later
Published
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| GitHub_MCNA (assigner) | 4.0 | High8.8 | 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 |
| NVDNVD · Awaiting Analysis | 4.0 | High8.8 | 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
- EPSS (exploitation in 30 days)
- 0.77% · top 43% of all CVEs (20 Nov 2026)
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 8.8.
Affected products
References
References10
- https://github.com/samtools/htslib/security/advisories/GHSA-6q7c-m967-9v37 (opens in a new tab)x_refsource_CONFIRM
- https://github.com/samtools/htslib/pull/2020 (opens in a new tab)x_refsource_MISC
- https://github.com/samtools/htslib/pull/2046 (opens in a new tab)x_refsource_MISC
- https://github.com/samtools/htslib/commit/a3e8dca14dcfdc6167281721ede6d6ecd3395bad (opens in a new tab)x_refsource_MISC
- https://github.com/samtools/htslib/commit/c0b50372ed133c650fa0a641607da5cde46bcd8c (opens in a new tab)x_refsource_MISC
- https://github.com/samtools/htslib/commit/d66a77dbf8f52f7f44efd7929a28b94bbfc17f2f (opens in a new tab)x_refsource_MISC
- https://github.com/samtools/htslib/releases/tag/1.21.2 (opens in a new tab)x_refsource_MISC
- https://github.com/samtools/htslib/releases/tag/1.22.3 (opens in a new tab)x_refsource_MISC
- https://github.com/samtools/htslib/releases/tag/1.23.2 (opens in a new tab)x_refsource_MISC
- https://github.com/samtools/htslib/releases/tag/1.24 (opens in a new tab)x_refsource_MISC
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2026-130350 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2026-62257)Record last updated .