CVE catalog

CVE-2026-31972

SAMtools is a program for reading, manipulating and writing bioinformatics file formats. The `mpileup` command outputs DNA sequences that have been aligned against a known reference. On each output li

[CVE catalog]

Severity
Medium · CVSS 6.9
Published
Source
[NVD] · [CVE record]
EPSS
0.54% · Oct 25, 2026

SAMtools is a program for reading, manipulating and writing bioinformatics file formats. The `mpileup` command outputs DNA sequences that have been aligned against a known reference. On each output line it writes the reference position, optionally the reference DNA base at that position (obtained from a separate file) and all of the DNA bases that aligned to that position. As the output is ordered by position, reference data that is no longer needed is discarded once it has been printed out. Under certain conditions the data could be discarded too early, leading to an attempt to read from a pointer to freed memory. This bug may allow information about program state to be leaked. It may also cause a program crash through an attempt to access invalid memory. This bug is fixed in versions 1.21.1 and 1.22. 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