Cyber Posture

CVE-2026-31964

High

Published: 18 March 2026

Published
18 March 2026
Modified
19 March 2026
KEV Added
Patch
CVSS Score 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS Score 0.0006 18.8th percentile
Risk Priority 15 60% EPSS · 20% KEV · 20% CVSS

Summary

CVE-2026-31964 is a high-severity NULL Pointer Dereference (CWE-476) vulnerability in Htslib Htslib. Its CVSS base score is 7.5 (High).

Operationally, exploitation aligns with the MITRE ATT&CK technique Application or System Exploitation (T1499.004); ranked at the 18.8th percentile by exploit likelihood (below the median); it is not currently listed in the CISA KEV catalog.

The strongest mitigations our analysis identified are NIST 800-53 SI-11 (Error Handling) and SI-2 (Flaw Remediation).

Threat & Defense at a Glance

What attackers do: exploitation maps to Application or System Exploitation (T1499.004). What defenders deploy: see the NIST 800-53 controls recommended below.
Threat & Defense Details

Mitigating Controls (NIST 800-53 r5)AI

prevent

Requires organizations to identify, report, and correct flaws like the NULL pointer dereference in HTSlib's CRAM decoding for CONST, XPACK, and XRLE encodings by applying patches in fixed versions.

prevent

Mandates secure error handling during CRAM record decoding to gracefully manage omitted sequence or quality data without attempting writes to NULL pointers, preventing program crashes.

prevent

Implements validation of CRAM file inputs to detect and reject malformed records using vulnerable encodings before processing, mitigating exploitation via crafted files.

MITRE ATT&CK Enterprise TechniquesAI

T1499.004 Application or System Exploitation Impact
Adversaries may exploit software vulnerabilities that can cause an application or system to crash and deny availability to users.
Why these techniques?

NULL pointer dereference in HTSlib when decoding crafted CRAM files directly triggers application crashes, enabling Endpoint Denial of Service via application exploitation (T1499.004).

Confidence: HIGH · MITRE ATT&CK Enterprise v18.1

NVD Description

HTSlib is a library for reading and writing bioinformatics file formats. CRAM is a compressed format which stores DNA sequence alignment data using a variety of encodings and compression methods. While most alignment records store DNA sequence and quality values,…

more

the format also allows them to omit this data in certain cases to save space. Due to some quirks of the CRAM format, it is necessary to handle these records carefully as they will actually store data that needs to be consumed and then discarded. Unfortunately the `CONST`, `XPACK` and `XRLE` encodings did not properly implement the interface needed to do this. Trying to decode records with omitted sequence or quality data using these encodings would result in an attempt to write to a NULL pointer. Exploiting this bug causes a NULL pointer dereference. Typically this will cause the program to crash. Versions 1.23.1, 1.22.2 and 1.21.1 include fixes for this issue. There is no workaround for this issue.

Deeper analysisAI

CVE-2026-31964 is a NULL pointer dereference vulnerability (CWE-476) in HTSlib, a C library for reading and writing bioinformatics file formats such as CRAM, which stores compressed DNA sequence alignment data. The issue affects the CONST, XPACK, and XRLE encodings when decoding CRAM records that omit sequence or quality data; these encodings fail to properly implement the required interface for handling and discarding such data, resulting in an attempt to write to a NULL pointer.

The vulnerability has a CVSS v3.1 base score of 7.5 (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H), indicating it is exploitable over the network with low complexity, no privileges or user interaction required. An unauthenticated attacker can supply a specially crafted CRAM file to any application using a vulnerable HTSlib version, triggering the dereference and typically causing a program crash, leading to denial of service.

The HTSlib GitHub security advisory (GHSA-5w97-85gf-86rm) and fixing commit (e64e68da567d2309509d059ace016d5d7fc7514f) confirm patches in versions 1.23.1, 1.22.2, and 1.21.1; there is no workaround available. Security practitioners should ensure dependent bioinformatics tools update to these fixed releases when processing untrusted CRAM files.

Details

CWE(s)

Affected Products

htslib
htslib
1.23 · ≤ 1.21.1 · 1.22 — 1.22.2

CVEs Like This One

CVE-2026-31967Same product: Htslib Htslib
CVE-2026-31963Same product: Htslib Htslib
CVE-2026-31965Same product: Htslib Htslib
CVE-2026-31971Same product: Htslib Htslib
CVE-2026-31962Same product: Htslib Htslib
CVE-2026-31966Same product: Htslib Htslib
CVE-2026-31970Same product: Htslib Htslib
CVE-2026-31969Same product: Htslib Htslib
CVE-2026-31968Same product: Htslib Htslib
CVE-2026-4652Shared CWE-476

References