llamaCVEVulnerability Intelligence
/
HTSlib

CVE-2026-62255

HTSlib heap write overflow in CRAM index handling

A remote attacker can crash programs or corrupt memory using a malformed CRAI index file during a user's region query.

Solo en configuraciones específicasParche disponibleheap buffer overflow
Descargar PNG JSON
CVSS 4.0
7.1
Alta
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 Fuente: CNA
ExplotaciónPoC públicaSSVC: PoC · no figura en CISA KEV
Exploits públicos0CISA-ADP reporta PoC; aún sin enlace público
Parche3 versiones1.21.2 · 1.22.3 · 1.23.2
Exposición1 dDesde la divulgación, 19 nov 2026, 10:45 a. m.
Detección4 minDesde la divulgación hasta su ingreso al índice
Decisión SSVCSeguir de cerca
Monitorear y programar la remediación
Existe PoC pública, no automatizable e impacto técnico parcial. Hay versiones corregidas disponibles.
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada
Evaluación SSVC +1
Explotación
Remediación
Monitoreo
Detectada
Fuente: NIST NVD
Fuente: ENISA EUVD +1
10:45 a. m.
11:25 a. m.
01:40 p. m.
02:25 p. m.
01:24 a. m.
10:45 a. m.
08:25 p. m.
06:05 a. m.
03:44 p. m.
01:24 a. m.
FechaFaseEventoDetalle
Divulgación Publicada CVE-2026-62255 divulgada · CVSS 7.1 (CNA)
Monitoreo Detectada Ingresó al índice
Monitoreo Fuente: NIST NVD Registro visto por primera vez en NIST NVD
Divulgación Evaluación SSVC CISA-ADP · explotación PoC pública
Divulgación Modificada Última actualización del registro
Monitoreo Fuente: ENISA EUVD Registro visto por primera vez en ENISA EUVD
Monitoreo Verificada Última verificación contra las fuentes
Resumen
Resumen generado por IA · CC-BY 4.0 · 19 nov 2026

HTSlib, a library for reading and writing bioinformatics file formats, has a heap write overflow in its CRAM index handling. A remote attacker without a login can trigger it by supplying a malformed .crai index file, but a user must perform a region query for the flaw to fire, which can cause denial of service or memory corruption.

Affects HTSlib 1.23.1 or earlier, 1.22.2 or earlier, and 1.21.1 or earlier when a malformed CRAI index file is loaded for a CRAM file. Fixed in 1.21.2, 1.22.3, and 1.23.2.

¿Qué significa?A heap write overflow in HTSlib's CRAM index handling. A malformed CRAI index can cause unbounded memory allocation, leading to denial of service, and a memory write through an unvalidated pointer read from heap data, which can corrupt memory. Any region query on the affected CRAM file triggers it, including valid queries.
¿Quién está afectado?Versions 1.21.1 or earlier, 1.22.2 or earlier, and 1.23.1 or earlier are affected, and only when a malformed CRAI index file is loaded for a CRAM file and a region query is run. To check, look at which HTSlib version your tools are built against and whether a CRAI index file is in use.
¿Qué hacer?Upgrade to HTSlib 1.21.2, 1.22.3, or 1.23.2, using the fixed version on your release line.
Descripción original del registro (GitHub_M)

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.

Contexto

Condiciones y alcance

Condiciones necesarias para que el fallo sea explotable
01
Running HTSlib 1.23.1 or earlier, 1.22.2 or earlier, or 1.21.1 or earlier“<= 1.23.1, 1.22.2 and 1.21.1”
02
A malformed CRAI index file is loaded for the CRAM file“With a malformed CRAI index file”
03
Any region query on the CRAM file triggers the flaw, including valid queries“This is triggered by any region query, even valid ones.”
¿Quién debe revisar?Teams running HTSlib 1.23.1 or earlier, 1.22.2 or earlier, or 1.21.1 or earlier that open CRAM files with .crai indexes for region queries, such as samtools view or pysam fetch() users
Vector CVSS 4.0

Desglose de métricas

Opción resaltada = valor del vector · izquierda = peor caso · CNA
Vector de ataqueAV:N
RedAdyacenteLocalFísica
ComplejidadAC:L
BajaAlta
Requisitos de ataqueAT:N
NingunoPresentes
PrivilegiosPR:N
NingunoBajosAltos
InteracciónUI:P
NingunaPasivaActiva
Confid. (sistema)VC:N
AltoBajoNinguno
Integridad (sistema)VI:H
AltoBajoNinguno
Disponib. (sistema)VA:L
AltoBajoNinguno
Confid. (posterior)SC:N
AltoBajoNinguno
Integridad (posterior)SI:N
AltoBajoNinguno
Disponib. (posterior)SA:N
AltoBajoNinguno
Score de explotaciónQué tan fácil y probable es que la exploten
10.0/ 10Muy alto
Vector 8.3 (muy fácil) · +1.7 por PoC pública.
Versiones

Rangos afectados

Afectada Corregida
htslib< 1.21.2
htslib≥ 1.22.0 < 1.22.3
htslib≥ 1.23.0 < 1.23.2
1.21.2
1.22.0
1.22.3
1.23.0
1.23.2
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
htslib
Corregida 1.21.2, 1.22.3, 1.23.2 — —
Versiones corregidas1.21.21.22.31.23.2
Explotación

Arsenal público

Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.

Referencias
Fabricantehttps://github.com/samtools/htslib/security/advisories/GHSA-28r7-prwc-hf5c
Otrahttps://github.com/samtools/htslib/pull/2029
Otrahttps://github.com/samtools/htslib/commit/08fbbceefdfac073e768c1fce593181ca7379222
Otrahttps://github.com/samtools/htslib/commit/57e1a0763c9a5f34a1d1ab9deb3a3ad2bd8fe11d
Otrahttps://github.com/samtools/htslib/commit/8a2394e63c9bdd758cc6a7de04c5e2ee7acc8e65
Otrahttps://github.com/samtools/htslib/commit/924e21755d0b5db7a33f1920d20c0e441667d22f
Otrahttps://github.com/samtools/htslib/releases/tag/1.21.2
Otrahttps://github.com/samtools/htslib/releases/tag/1.22.3
Otrahttps://github.com/samtools/htslib/releases/tag/1.23.2
Otrahttps://github.com/samtools/htslib/releases/tag/1.24

Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.