{
  "id": "CVE-2026-31973",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-31973",
  "published_at": "2026-03-18T20:34:00.846Z",
  "title": "NULL pointer dereference in samtools cram-size",
  "vendor": "samtools",
  "product": "samtools",
  "cvss": {
    "score": 7.5,
    "source": "nvd",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "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.",
  "cwe": "CWE-476",
  "cpes": [
    "cpe:2.3:a:samtools:samtools:*:*:*:*:*:*:*:*",
    "cpe:2.3:a:samtools:samtools:1.23:*:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 6.9,
    "nvd": 7.5
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "samtools",
        "product": "samtools",
        "ranges": [
          "\u003e= 1.17, \u003c 1.21.1",
          "\u003e= 1.22, \u003c 1.22.2",
          "= 1.23"
        ],
        "fixed_in": [
          "1.21.1",
          "1.22.2"
        ]
      }
    ],
    "upgrade": [
      "Upgrade samtools to 1.21.1 or 1.22.2 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/samtools/samtools/security/advisories/GHSA-x86f-q6fj-cm43"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/samtools/samtools/commit/06fc2a219b3d7c94d3f412c09f6d1efd51199f2f"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
