CVE catalog

CVE-2026-31973

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 com

[CVE catalog]

Severity
High · CVSS 7.5CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Published
Source
[NVD] · [CVE record]
EPSS
0.54% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debiansamtoolssid1.24-2vulnerable
Debiansamtoolsforky1.24-2vulnerable
Debiansamtoolstrixie1.21-1vulnerable
Debiansamtoolsbookworm1.16.1-1vulnerable
CpesamtoolsNot reportedNot reportedvulnerable

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debiansamtoolssourcesid(unfixed)unimportantNot reportedNot reported
Debiansamtoolssourceforky(unfixed)unimportantNot reportedNot reported
Debiansamtoolssourcetrixie(unfixed)unimportantNot reportedNot reported
Debiansamtoolssourcebookworm(unfixed)unimportantNot reportedNot reported

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • [samtools]Affected
    Details (2)
    • 1.16.1-1 · amd64 · bookworm

      Affected

      nvd · samtools · debian · bookworm; nvd · samtools · debian · 12

    • 1.16.1-1 · arm64 · bookworm

      Affected

      nvd · samtools · debian · bookworm; nvd · samtools · debian · 12

  • [samtools-test]Affected

    Source package: [samtools]

    Details (2)
    • 1.16.1-1 · all · bookworm

      Affected

      nvd · samtools · debian · bookworm; nvd · samtools · debian · 12

    • 1.16.1-1 · all · bookworm

      Affected

      nvd · samtools · debian · bookworm; nvd · samtools · debian · 12

[Debian 13 (Trixie)]

  • [samtools]Affected
    Details (2)
    • 1.21-1 · amd64 · trixie

      Affected

      nvd · samtools · debian · 13

    • 1.21-1 · arm64 · trixie

      Affected

      nvd · samtools · debian · 13

  • [samtools-test]Affected

    Source package: [samtools]

    Details (2)
    • 1.21-1 · all · trixie

      Affected

      nvd · samtools · debian · 13

    • 1.21-1 · all · trixie

      Affected

      nvd · samtools · debian · 13

Observed:

References