{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-62256","id":"CVE-2026-62256","title":"HTSlib heap buffer overflow in FASTA index retrieval","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, 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; lar","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, 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.","published":"2026-11-19T15:52:04.669Z","updated":"2026-11-19T15:52:04.669Z","reserved":"2026-07-13T17:09:57.573Z","status":"PUBLISHED","rejected":false,"assigner":"GitHub_M","metric":{"version":"4.0","score":7.1,"vector":"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","rating":"high","source":"GitHub_M"},"metrics":[{"version":"4.0","score":7.1,"vector":"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","rating":"high","source":"GitHub_M"}],"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-122","CWE-787"],"aliases":[],"references":[{"url":"https://github.com/samtools/htslib/security/advisories/GHSA-4hjq-r829-8c8v","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/samtools/htslib/pull/2008","tags":["x_refsource_MISC"]},{"url":"https://github.com/samtools/htslib/commit/4af640f9ffd7f1fac95a739df7f560e3e5557960","tags":["x_refsource_MISC"]},{"url":"https://github.com/samtools/htslib/commit/504fb841b70afb948f58089c3a4337ce875c1e52","tags":["x_refsource_MISC"]},{"url":"https://github.com/samtools/htslib/commit/567fd43c6ef938de53c98217f99336e3ce5a60ab","tags":["x_refsource_MISC"]},{"url":"https://github.com/samtools/htslib/commit/cdf22929aad8dde719c1b2070ad565ac9dd76c02","tags":["x_refsource_MISC"]},{"url":"https://github.com/samtools/htslib/releases/tag/1.21.2","tags":["x_refsource_MISC"]},{"url":"https://github.com/samtools/htslib/releases/tag/1.22.3","tags":["x_refsource_MISC"]},{"url":"https://github.com/samtools/htslib/releases/tag/1.23.2","tags":["x_refsource_MISC"]},{"url":"https://github.com/samtools/htslib/releases/tag/1.24","tags":["x_refsource_MISC"]}],"patchReferenced":false,"fixAvailable":false,"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-62256","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-62256","ok":false,"note":"not found"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-62256","ok":false,"note":"no open-source package data"},{"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-62256","ok":false,"note":"no score yet"}],"aiTitle":true,"tech":[],"critical":[],"attention":null}