{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-62258","id":"CVE-2026-62258","title":"HTSlib stack buffer overflow in CRAM query-name decoding","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 version","descriptionLong":"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.","published":"2026-11-19T15:50:31.702Z","updated":"2026-11-19T17:00:47.316361420Z","reserved":"2026-07-13T17:09:57.574Z","status":"Received","rejected":false,"assigner":"GitHub_M","metric":{"version":"4.0","score":8.8,"vector":"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","rating":"high","source":"GitHub_M"},"metrics":[{"version":"4.0","score":8.8,"vector":"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","rating":"high","source":"GitHub_M"},{"version":"4.0","score":8.8,"vector":"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","rating":"high","source":"github.com"},{"version":"4.0","score":null,"vector":"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","rating":"unrated","source":"OSV"}],"rating":"high","products":["samtools htslib"],"affectedProducts":[{"vendor":"samtools","product":"htslib","defaultStatus":null,"versions":[{"version":"< 1.21.2","status":"affected"},{"version":">= 1.22.0, < 1.22.3","status":"affected"},{"version":">= 1.23.0, < 1.23.2","status":"affected"}],"platforms":[]}],"packages":[],"cwes":["CWE-121","CWE-787"],"aliases":["GHSA-2jx2-wm7f-rv9m"],"references":[{"url":"https://github.com/samtools/htslib/security/advisories/GHSA-2jx2-wm7f-rv9m","tags":["x_refsource_CONFIRM","advisory"]},{"url":"https://github.com/samtools/htslib/pull/2046","tags":["x_refsource_MISC","fix"]},{"url":"https://github.com/samtools/htslib/commit/25278797c251a9af789382ecf5aa0c86f417bdf5","tags":["x_refsource_MISC","fix"]},{"url":"https://github.com/samtools/htslib/commit/df93e245f1b517aec86c69684fcb2faf5942c5c2","tags":["x_refsource_MISC","fix"]},{"url":"https://github.com/samtools/htslib/commit/f1d1bf835aaafa1e511996dcd49760c36f683b17","tags":["x_refsource_MISC","fix"]},{"url":"https://github.com/samtools/htslib/releases/tag/1.21.2","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/samtools/htslib/releases/tag/1.22.3","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/samtools/htslib/releases/tag/1.23.2","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/samtools/htslib/releases/tag/1.24","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/62xxx/CVE-2026-62258.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-62258","tags":["advisory"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":null,"epssPercentile":null,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-62258","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-62258","ok":true,"note":"Received"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-62258","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-62258","ok":false,"note":"no score yet"}],"aiTitle":true,"tech":[],"critical":[],"attention":null}