{"id":"CVE-2026-31973","aliases":["CVE-2026-31973"],"related":[],"kind":"vulnerability","state":"published","title":"NULL pointer dereference in samtools cram-size","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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"SAMtools es un programa para leer, manipular y escribir formatos de archivo bioinformáticos. A partir de la versión 1.17, en el comando cram-size, utilizado para escribir información sobre qué tan bien se comprimen los archivos CRAM, se omitió una comprobación para ver si 'cram_decode_compression_header()' estaba ausente. Si la función devolvía un error, esto podría llevar a una desreferenciación de puntero NULL. Explotar este error causa una desreferenciación de puntero NULL. Típicamente, esto hará que el programa falle. Las versiones 1.23.1, 1.22.2 y 1.21.1 incluyen correcciones para este problema. No hay una solución alternativa para este problema.","source":"nvd"}],"published":"2026-03-18T20:34:00.846Z","modified":"2026-06-17T10:34:52.260Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":6.9,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":6.9,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"}],"cwes":["CWE-476"],"affected":[{"ranges":[{"version":">= 1.17, < 1.21.1","status":"affected"},{"version":">= 1.22, < 1.22.2","status":"affected"},{"version":"= 1.23","status":"affected"}],"vendor":"samtools","product":"samtools","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"1.17","lastAffected":"1.21.1"},{"status":"affected","introduced":"1.22","fixed":"1.22.2"},{"status":"affected","version":"1.23"}],"vendor":"samtools","product":"samtools","cpe":"cpe:2.3:a:samtools:samtools:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/samtools/samtools/security/advisories/GHSA-x86f-q6fj-cm43","tags":["vendor-advisory","x-refsource-confirm"],"sources":["cvelist","nvd"]},{"url":"https://github.com/samtools/samtools/commit/06fc2a219b3d7c94d3f412c09f6d1efd51199f2f","tags":["patch","x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"http://www.openwall.com/lists/oss-security/2026/03/18/12","tags":["mailing-list","third-party-advisory"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-03-19T16:14:49.923Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-31973","url":"https://www.cve.org/CVERecord?id=CVE-2026-31973","licence":"CVE Terms of Use","modified":"2026-03-19T16:14:59.386Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-31973","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31973","licence":"Public domain","modified":"2026-06-17T10:34:52.260Z"}],"updatedAt":"2026-11-25T22:59:16.138Z","epss":{"score":0.00589,"percentile":0.49513,"date":"2026-12-01T12:00:22.000Z"}}