CVE-2026-31972: SAMtools is a program for reading, manipulating and writing bioinformatics file formats
Affects samtoolsSource GCVE Database
Not known to be exploited · CVSS 9.8 Critical · fixed in 1.21.1 : patch samtools as a priority.
Data as of 24 Nov 2026, 21:15 UTC
Contested
Critical score, yet low EPSS after six months- EPSS
- 0.5% chance of exploitation in 30 days – higher than 48% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 1.21.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 18 Mar 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 24 Nov 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 26.10samtoolspkg:deb/ubuntu/samtools?arch=source&distro=stonkingOther threats | Affected
| Fixed in– |
Ubuntu 26.04 LTSsamtoolspkg:deb/ubuntu/samtools?arch=source&distro=resoluteOther threats | Affected
| Fixed in– |
Ubuntu 25.10samtoolspkg:deb/ubuntu/samtools?arch=source&distro=questingOther threats | Affected
| Fixed in– |
Ubuntu 24.04 LTSsamtoolspkg:deb/ubuntu/samtools?arch=source&distro=nobleOther threats | Affected
| Fixed in– |
Ubuntu 22.04 LTSsamtoolspkg:deb/ubuntu/samtools?arch=source&distro=jammyOther threats | Affected
| Fixed in– |
Ubuntu 20.04 LTSsamtoolspkg:deb/ubuntu/samtools?arch=source&distro=focalOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
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.
References
- ubuntu.com/security/CVE-2026-31972 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2026-31972 (opens in a new tab)
- github.com/samtools/samtools/security/advisories/GHSA-72c8-4jf3-f27p (opens in a new tab)
- github.com/samtools/samtools/commit/3036eb9af945fcef359427a2d359855553da4adf (opens in a new tab)
- openwall.com/lists/oss-security/2026/03/18/11 (opens in a new tab)