CVE-2026-31972

Source
https://cve.org/CVERecord?id=CVE-2026-31972
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-31972.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-31972
Aliases
  • GHSA-72c8-4jf3-f27p
Downstream
Published
2026-03-18T20:32:29.862Z
Modified
2026-04-10T05:42:54.853553Z
Severity
  • 6.9 (Medium) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:L/SC:N/SI:N/SA:N CVSS Calculator
Summary
samtools mpileup has use-after-free leading to an invalid read
Details

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.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/31xxx/CVE-2026-31972.json",
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
        "CWE-416"
    ]
}
References

Affected packages

Git / github.com/samtools/samtools

Affected ranges

Type
GIT
Repo
https://github.com/samtools/samtools
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Affected versions

0.*
0.1.1
0.1.10
0.1.11
0.1.12
0.1.12a
0.1.13
0.1.14
0.1.15
0.1.16
0.1.17
0.1.18
0.1.19
0.1.2-svntag
0.1.2-tarball
0.1.3
0.1.4
0.1.5
0.1.5a
0.1.5b
0.1.5c
0.1.6
0.1.7
0.1.7a
0.1.8
0.1.9
0.2.0-rc1
0.2.0-rc10
0.2.0-rc11
0.2.0-rc12
0.2.0-rc2
0.2.0-rc3
0.2.0-rc4
0.2.0-rc5
0.2.0-rc6
0.2.0-rc7
0.2.0-rc8
0.2.0-rc9

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-31972.json"