CVE-2026-31973

Source
https://cve.org/CVERecord?id=CVE-2026-31973
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-31973.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-31973
Aliases
  • GHSA-x86f-q6fj-cm43
Downstream
Published
2026-03-18T20:34:00.846Z
Modified
2026-04-10T05:42:54.860507Z
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
NULL pointer dereference in samtools cram-size
Details

SAMtools is a program for reading, manipulating and writing bioinformatics file formats. Starting in version 1.17, in the cram-size command, used to write information about how well CRAM files are compressed, a check to see if the cram_decode_compression_header() was missing. If the function returned an error, this could lead to a NULL pointer dereference. 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
{
    "cwe_ids": [
        "CWE-476"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/31xxx/CVE-2026-31973.json",
    "cna_assigner": "GitHub_M"
}
References

Affected packages

Git / github.com/samtools/samtools

Affected ranges

Type
GIT
Repo
https://github.com/samtools/samtools
Events
Database specific
{
    "versions": [
        {
            "introduced": "1.17"
        },
        {
            "fixed": "1.21.1"
        }
    ]
}
Type
GIT
Repo
https://github.com/samtools/samtools
Events
Database specific
{
    "versions": [
        {
            "introduced": "1.22"
        },
        {
            "fixed": "1.22.2"
        }
    ]
}
Type
GIT
Repo
https://github.com/samtools/samtools
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Database specific
{
    "versions": [
        {
            "introduced": "0"
        },
        {
            "last_affected": "= 1.23"
        }
    ]
}

Affected versions

0.*
0.1.1
0.1.10
0.1.11
0.1.12
0.1.12a
0.1.13
0.1.14
0.1.15
0.1.16
0.1.17
0.1.18
0.1.19
0.1.2-svntag
0.1.2-tarball
0.1.20
0.1.3
0.1.4
0.1.5
0.1.5a
0.1.5b
0.1.5c
0.1.6
0.1.7
0.1.7a
0.1.8
0.1.9
1.*
1.0
1.1
1.10
1.11
1.12
1.13
1.14
1.15
1.15.1
1.16
1.16.1
1.17
1.18
1.19
1.19.1
1.19.2
1.2
1.20
1.21
1.22
1.22.1
1.23
1.3
1.3.1
1.4
1.4.1
1.5
1.6
1.7
1.8
1.9

Database specific

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