CVE-2026-31964

Source
https://cve.org/CVERecord?id=CVE-2026-31964
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-31964.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-31964
Aliases
  • GHSA-5w97-85gf-86rm
Downstream
Published
2026-03-18T18:27:26.099Z
Modified
2026-07-08T08:12:26.776052144Z
Severity
  • 6.9 (Medium) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N CVSS Calculator
Summary
HTSlib CRAM decoder has a NULL Pointer Dereference
Details

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, 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.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/31xxx/CVE-2026-31964.json",
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
        "CWE-476"
    ]
}
References

Affected packages

Git / github.com/samtools/htslib

Affected ranges

Type
GIT
Repo
https://github.com/samtools/htslib
Events
Database specific
{
    "source": [
        "CPE_RANGE",
        "CPE_STRING",
        "REFERENCES"
    ],
    "cpe": [
        "cpe:2.3:a:htslib:htslib:*:*:*:*:*:*:*:*",
        "cpe:2.3:a:htslib:htslib:1.23:*:*:*:*:*:*:*"
    ],
    "extracted_events": [
        {
            "introduced": "0"
        },
        {
            "fixed": "1.21.1"
        },
        {
            "introduced": "1.22"
        },
        {
            "fixed": "1.22.2"
        },
        {
            "introduced": "1.23"
        },
        {
            "last_affected": "1.23"
        }
    ]
}

Affected versions

0.*
0.2.0-rc10
0.2.0-rc11
0.2.0-rc12
0.2.0-rc2
0.2.0-rc3
0.2.0-rc4
0.2.0-rc5
0.2.0-rc6
0.2.0-rc7
0.2.0-rc8
0.2.0-rc9
1.*
1.10.1
1.23
= 1.*
= 1.23
Other
stable1
stable2
vcf-direct-final

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-31964.json"