CVE-2026-62258HTSlib: Stack write overflow in HTSlib CRAM decoder
- 8.8HighCVSS base score
- —Exploitation in 30 daysno EPSS score yet
- 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 CRAM decoder validates the 254-character query-name limit only after decoding the name into a 1024-byte stack array. An attacker-controlled CRAM record can provide an overlong query name and overflow the local stack buffer before the later validation runs; all CRAM format versions are affected. Opening such a file can crash the process, corrupt stack data, and may 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 |
- EPSS (exploitation in 30 days)
- Not scored
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 8.8.
Affected products
References
References9
- https://github.com/samtools/htslib/security/advisories/GHSA-2jx2-wm7f-rv9m (opens in a new tab)x_refsource_CONFIRM
- https://github.com/samtools/htslib/pull/2046 (opens in a new tab)x_refsource_MISC
- https://github.com/samtools/htslib/commit/25278797c251a9af789382ecf5aa0c86f417bdf5 (opens in a new tab)x_refsource_MISC
- https://github.com/samtools/htslib/commit/df93e245f1b517aec86c69684fcb2faf5942c5c2 (opens in a new tab)x_refsource_MISC
- https://github.com/samtools/htslib/commit/f1d1bf835aaafa1e511996dcd49760c36f683b17 (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)
- 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-62258)Record last updated .