llamaCVEVulnerability Intelligence
/
HTSlib

CVE-2026-62257

HTSlib heap overflow in CRAM v4 decoder may allow code execution

An attacker can send a crafted file to crash the program or corrupt memory, possibly running arbitrary code.

Solo en configuraciones específicasParche disponibleheap buffer overflow
Descargar PNG JSON
CVSS 4.0
8.8
Alta
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 Fuente: CNA
ExplotaciónSin evidenciaNo figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche3 versiones1.21.2 · 1.22.3 · 1.23.2
Exposición1 dDesde la divulgación, 19 nov 2026, 10:41 a. m.
Detección3 minDesde la divulgación hasta su ingreso al índice
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada
Explotación
Remediación
Monitoreo
Detectada
Fuente: NIST NVD +1
10:41 a. m.
11:25 a. m.
02:27 a. m.
10:41 a. m.
08:38 p. m.
06:34 a. m.
04:31 p. m.
02:27 a. m.
FechaFaseEventoDetalle
Divulgación Publicada CVE-2026-62257 divulgada · CVSS 8.8 (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
Resumen generado por IA · CC-BY 4.0 · 19 nov 2026

HTSlib, a library for reading and writing bioinformatics file formats, has a heap memory overflow in its experimental CRAM v4 decoder. An attacker can trigger it remotely, without logging in or any user action, by supplying a crafted file, which may crash the program or corrupt heap memory in a way that could allow arbitrary code execution.

Affects HTSlib before 1.21.2, 1.22.0 to 1.22.2, and 1.23.0 to 1.23.1 when decoding CRAM v4 files with the experimental XPACK or XRLE decoders. Fixed in 1.21.2, 1.22.3 and 1.23.2.

¿Qué significa?The experimental CRAM v4 XPACK and XRLE decoders cache a copy of a block pointer, which leads to heap read and write out-of-bounds access. The out-of-bounds access may crash the process or possibly allow arbitrary code execution.
¿Quién está afectado?HTSlib versions before 1.21.2, 1.22.0 through 1.22.2, and 1.23.0 through 1.23.1 are affected, and only when CRAM v4 files are decoded with the experimental XPACK or XRLE decoders. To check, run samtools --version to see the linked HTSlib version and confirm whether CRAM v4 input is being decoded.
¿Qué hacer?Upgrade HTSlib to 1.21.2, 1.22.3, or 1.23.2, using the one on the same release line as the version in use.
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, the experimental CRAM v4 XPACK and XRLE decoders cache expanded block pointers at indexes beyond the 512-element slice->block_by_id array. An array index partially controlled by data in the input file first causes an out-of-bounds read to determine whether a block is cached; a null value then causes allocation of a block and an out-of-bounds pointer write to the same element. The invalid read may crash the process, while the write may corrupt heap state and could permit arbitrary code execution. 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
Decoding CRAM v4 files with the experimental XPACK or XRLE decoders in HTSlib“The experimental CRAM v4 format XPACK and XRLE decoders cache a copy of the block pointer”
¿Quién debe revisar?Teams running samtools or HTSlib at versions up to 1.23.1, 1.22.2 or 1.21.1 that decode experimental CRAM v4 files
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:N
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 10.0 (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-6q7c-m967-9v37
Otrahttps://github.com/samtools/htslib/pull/2020
Otrahttps://github.com/samtools/htslib/pull/2046
Otrahttps://github.com/samtools/htslib/commit/a3e8dca14dcfdc6167281721ede6d6ecd3395bad
Otrahttps://github.com/samtools/htslib/commit/c0b50372ed133c650fa0a641607da5cde46bcd8c
Otrahttps://github.com/samtools/htslib/commit/d66a77dbf8f52f7f44efd7929a28b94bbfc17f2f
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.