NULL pointer dereference in samtools cram-size
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · Low · Low
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-476.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| samtools | samtools | 1.17 to before 1.21.1; 1.22 to before 1.22.2; = 1.23 | 1.21.1, 1.22.2 | Patch available | CNA |
- samtools Vendorsamtools Affected 1.17 to before 1.21.1; 1.22 to before 1.22.2; = 1.23 Fixed in 1.21.1, 1.22.2 Patch available CNA
Remediation
- Fix · CNA samtools (samtools) Fixed in 1.21.1, 1.22.2
Vendor assessments
Timeline
- 2026-10-02 Threatist record created from CVE-2026-31973
- 2026-10-23 EPSS moved to the 50th–90th percentile
- 2026-10-25 EPSS moved to the below the 50th percentile
References
More Samtools vulnerabilities
- TI-2026-24516 samtools mpileup has use-after-free leading to an invalid read CVSS 4.0MEDIUM 6.9
Sources
- CVE-2026-31973 · CVE Program
- CVE-2026-31973 · NVD
- FIRST EPSS
- CVE-2026-31973 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences