CVE-2026-62255

high

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, cram_index_load does not verify that the number of reference sequences in a CRAM .crai index does not exceed the CRAM header reference count. A malformed index can drive unbounded index-array allocation, and when the number of references in the index is within two of INT_MAX, the growth calculation can wrap, read beyond a heap buffer, and use the resulting value as a pointer for an unchecked memory write. Any region query can trigger the flaw, causing denial of service or memory corruption. This issue is fixed in versions 1.21.2, 1.22.3, 1.23.2, and 1.24.

References

https://github.com/samtools/htslib/security/advisories/GHSA-28r7-prwc-hf5c

https://github.com/samtools/htslib/releases/tag/1.24

https://github.com/samtools/htslib/releases/tag/1.23.2

https://github.com/samtools/htslib/releases/tag/1.22.3

https://github.com/samtools/htslib/releases/tag/1.21.2

https://github.com/samtools/htslib/pull/2029

https://github.com/samtools/htslib/commit/924e21755d0b5db7a33f1920d20c0e441667d22f

https://github.com/samtools/htslib/commit/8a2394e63c9bdd758cc6a7de04c5e2ee7acc8e65

https://github.com/samtools/htslib/commit/57e1a0763c9a5f34a1d1ab9deb3a3ad2bd8fe11d

https://github.com/samtools/htslib/commit/08fbbceefdfac073e768c1fce593181ca7379222

https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-130352

Details

Source: Mitre, NVD

Published: 2026-11-19

Updated: 2026-11-19

Risk Information

CVSS v2

Base Score: 8.3

Vector: CVSS2#AV:N/AC:M/Au:N/C:P/I:C/A:P

Severity: High

CVSS v3

Base Score: 7.8

Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Severity: High

CVSS v4

Base 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

Severity: High

EPSS

EPSS: 0.00614