CVE-2026-31973: SAMtools is a program for reading, manipulating and writing bioinformatics file formats
Affects samtoolsSource GCVE Database
Not known to be exploited · CVSS 7.5 High.
Data as of 24 Nov 2026, 21:15 UTC
- 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.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/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. 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.
References
- ubuntu.com/security/CVE-2026-31973 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2026-31973 (opens in a new tab)
- github.com/samtools/samtools/security/advisories/GHSA-x86f-q6fj-cm43 (opens in a new tab)
- github.com/samtools/samtools/commit/06fc2a219b3d7c94d3f412c09f6d1efd51199f2f (opens in a new tab)
- openwall.com/lists/oss-security/2026/03/18/12 (opens in a new tab)