llamaCVEVulnerability Intelligence
/
HTSlib

CVE-2026-62256

HTSlib heap buffer overflow in FASTA index retrieval

A crafted FASTA index file can corrupt heap memory and crash a program that retrieves sequences with it.

Texto original en inglés · Ver en español

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ónSin evidenciaNo figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche3 versiones1.21.2 · 1.22.3 · 1.23.2
Exposición2 dDesde la divulgación, 19 nov 2026, 10:52 a. m.
Detección3 minDesde la divulgación hasta su ingreso al índice
Decisión estimadaSeguir
Remediar en la ventana regular de mantenimiento
Estimación de Llama con el árbol SSVC de CISA a partir de vector CVSS 4.0 y la evidencia de explotación (sin evaluación oficial): sin explotación conocida, no automatizable e impacto técnico parcial. Hay versiones corregidas disponibles.
Ponle una regla en tu SIEM y seguimos.Saqué la lupa: aquí hay algo que investigar.
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada
Explotación
Remediación
Monitoreo
Detectada
Fuente: NIST NVD +1
10:52 a. m.
11:25 a. m.
01:46 p. m.
10:52 a. m.
11:35 p. m.
12:19 p. m.
01:02 a. m.
01:46 p. m.
FechaFaseEventoDetalle
Divulgación Publicada CVE-2026-62256 divulgada · CVSS 7.1 (CNA)
Monitoreo Detectada Ingresó al índice
Monitoreo Fuente: NIST NVD Registro visto por primera vez en NIST NVD
Monitoreo Verificada Última verificación contra las fuentes
Resumen

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.

Affects HTSlib 1.23.1 and earlier, 1.22.2 and earlier, and 1.21.1 and earlier when reading FASTA .fai indexes whose recorded line width is off by one from the bases per line. Fixed in 1.21.2, 1.22.3, and 1.23.2.

¿Qué significa?The fai_retrieve function does not check that the line length recorded in a FASTA .fai index is consistent with the number of bases per line. When the recorded width is one less than the base count, it writes past the end of a heap buffer.
¿Quién está afectado?HTSlib 1.23.1 and earlier, 1.22.2 and earlier, and 1.21.1 and earlier are affected. The issue applies to code that reads FASTA .fai index files through fai_retrieve, so check the installed HTSlib version and whether a program using it reads such indexes.
¿Qué hacer?Upgrade to HTSlib 1.21.2 on the 1.21 branch, 1.22.3 on the 1.22 branch, or 1.23.2 on the 1.23 branch.
Contexto

Condiciones y alcance

Condiciones necesarias para que el fallo sea explotable
01
Affected HTSlib versions: 1.23.1 and earlier, 1.22.2 and earlier, and 1.21.1 and earlier.“<= 1.23.1, 1.22.2 and 1.21.1”
02
A FASTA .fai index whose recorded line width differs from the bases per line, read through fai_retrieve; the overflow occurs when the width is one less than the base count.“The fai_retrieve function does not validate the line length in the fai index file is greater or equal to the number of bases present per line.”
¿Quién debe revisar?Teams running samtools or HTSlib older than the fixed releases that read FASTA .fai indexes via fai_retrieve, such as samtools faidx 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
8.3/ 10Alto
Vector 8.3 (muy fácil) · sin evidencia de explotación.
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-4hjq-r829-8c8v
Otrahttps://github.com/samtools/htslib/pull/2008
Otrahttps://github.com/samtools/htslib/commit/4af640f9ffd7f1fac95a739df7f560e3e5557960
Otrahttps://github.com/samtools/htslib/commit/504fb841b70afb948f58089c3a4337ce875c1e52
Otrahttps://github.com/samtools/htslib/commit/567fd43c6ef938de53c98217f99336e3ce5a60ab
Otrahttps://github.com/samtools/htslib/commit/cdf22929aad8dde719c1b2070ad565ac9dd76c02
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.