Vulnerabilities / CVE-2026-31972

critical

CVE-2026-31972

SAMtools is a program for reading, manipulating and writing bioinforma ...

Published Modified CWE 416
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

NVD9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Trivy's own label is CRITICAL. Rated critical by NVD.

Description

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.

Affected packages and fixed versions

SourcePackageFixed in
debian 11samtoolsno fix listed
debian 12samtoolsno fix listed
debian 13samtoolsno fix listed
debian 14samtoolsno fix listed
echosamtoolsno fix listed
rapidfort debian 12samtoolsno fix listed
rapidfort debian 13samtoolsno fix listed
rapidfort fedora 43samtools1.23.1-1.fc43
rapidfort Oracle Linux 10samtools1.23.1-1.el10_3
rapidfort ubuntu 20.04samtools0:1.22.1-1
rapidfort ubuntu 22.04samtools0:1.22.1-1
rapidfort ubuntu 24.04samtools0:1.22.1-1

References

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.