NULL Pointer Dereference Affecting samtools package, versions <1.24-2


Severity

Recommended
low

Based on Debian security rating.

Threat Intelligence

EPSS
0.59% (49th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-DEBIANUNSTABLE-SAMTOOLS-15721263
  • published21 Mar 2026
  • disclosed18 Mar 2026

Introduced: 18 Mar 2026

CVE-2026-31973  (opens in a new tab)
CWE-476  (opens in a new tab)

How to fix?

Upgrade Debian:unstable samtools to version 1.24-2 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream samtools package and not the samtools package as distributed by Debian. See How to fix? for Debian:unstable relevant fixed versions and status.

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.

CVSS Base Scores

version 3.1