CVE-2026-31973
published medium CVSS 4.0 · 6.9NULL pointer dereference in samtools cram-size
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| samtools | — | samtools>= 1.17, < 1.21.1 · >= 1.22, < 1.22.2 · = 1.23 | Affected | Not stated | GitHub_M |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 6.9 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| samtools | samtools | >= 1.17, < 1.21.1 (affected)>= 1.22, < 1.22.2 (affected)= 1.23 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-476 CWE-476: NULL Pointer Dereference
References
3Provider assertions
3GitHub_M · cna
NULL pointer dereference in samtools cram-size
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 4c19ed52ca1e690c48721f3d7b20ee55aa4502855f360df4b33afd2605c812b6
- Ingested
- 23 Sep 2026, 09:09:43 UTC
- Source record
- Official CVE record