{"id":"CVE-2026-31973","aliases":["DEBIAN-CVE-2026-31973","EUVD-2026-12958","GHSA-x86f-q6fj-cm43","UBUNTU-CVE-2026-31973"],"status":"published","title":"NULL pointer dereference in samtools cram-size","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.","severity":{"version":"4.0","score":6.9,"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","level":"medium","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-09","score":0.00555,"percentile":0.46607,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-476"],"published":"2026-03-18T20:34:00Z","modified":"2026-11-03T21:00:07Z","fixes":[{"ecosystem":"Debian:14","package":"samtools","fixed_in":["1.24-2"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Debian:12","package":"samtools","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.16.1-1","1.17-0+exp1","1.17-1","1.18-1","1.19-1","1.19.2-1","1.20-1","1.20-2","1.20-3","1.21-0+exp1","1.21-1","1.22.1-1","1.24-1","1.24-2"]},{"source":"osv","ecosystem":"Debian:13","package":"samtools","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.21-1","1.22.1-1","1.24-1","1.24-2"]},{"source":"osv","ecosystem":"Debian:14","package":"samtools","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.24-2"}]}],"versions":["1.21-1","1.22.1-1","1.24-1"]},{"source":"osv","ecosystem":"Ubuntu:14.04:LTS","package":"samtools","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.1.19-1"]},{"source":"osv","ecosystem":"Ubuntu:16.04:LTS","package":"samtools","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.1.19-1ubuntu1"]},{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"samtools","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.4.1-1build1","1.5-1build1","1.6-3ubuntu1","1.6-4","1.7-1"]},{"source":"osv","ecosystem":"Ubuntu:20.04:LTS","package":"samtools","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.9-4","1.9-5","1.9-6","1.9-7","1.10-3"]},{"source":"osv","ecosystem":"Ubuntu:22.04:LTS","package":"samtools","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.13-2","1.13-4"]},{"source":"osv","ecosystem":"Ubuntu:24.04:LTS","package":"samtools","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.17-1","1.18-1","1.19-1","1.19.2-1","1.19.2-1build1","1.19.2-1build2"]},{"source":"osv","ecosystem":"Ubuntu:25.10","package":"samtools","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.21-1"]},{"source":"osv","ecosystem":"Ubuntu:26.10","package":"samtools","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.22.1-1"]},{"source":"osv","ecosystem":"Ubuntu:26.04:LTS","package":"samtools","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.21-1","1.22.1-1"]}],"products":[{"vendor":"samtools","product":"samtools"}],"references":[{"url":"https://github.com/samtools/samtools/security/advisories/GHSA-x86f-q6fj-cm43","tags":["x_refsource_CONFIRM","Vendor Advisory","advisory","report"]},{"url":"https://github.com/samtools/samtools/commit/06fc2a219b3d7c94d3f412c09f6d1efd51199f2f","tags":["x_refsource_MISC","Patch","fix","report"]},{"url":"http://www.openwall.com/lists/oss-security/2026/03/18/12","tags":["Mailing List","Third Party Advisory","web","report"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/31xxx/CVE-2026-31973.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31973","tags":["advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2026-31973","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2026-31973","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-31973","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2026-31973","title":"NULL pointer dereference in samtools cram-size","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.","status":"published","published":"2026-03-18T20:34:00.846Z","modified":"2026-03-19T16:14:59.386Z","cvss":[{"version":"4.0","score":6.9,"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","level":"medium","assessor":"cna"}],"cwes":["CWE-476"],"updated_at":"2026-11-02T14:19:51.277563Z"}],"euvd":[{"id":"EUVD-2026-12958","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.","status":"published","published":"2026-03-18T20:34:00Z","modified":"2026-03-19T16:14:59Z","cvss":[{"version":"4.0","score":6.9,"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","level":"medium"}],"updated_at":"2026-11-02T19:25:32.430758Z"}],"nvd":[{"id":"CVE-2026-31973","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.","status":"published","published":"2026-03-18T21:16:26.25Z","modified":"2026-06-17T10:34:52.26Z","cvss":[{"version":"4.0","score":6.9,"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","level":"medium","assessor":"secondary"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high","assessor":"primary"}],"cwes":["CWE-476"],"updated_at":"2026-11-02T14:12:09.735529Z"}],"osv":[{"id":"CVE-2026-31973","title":"NULL pointer dereference in samtools cram-size","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.","status":"published","published":"2026-03-18T20:34:00.846Z","modified":"2026-10-28T10:49:26.140471729Z","cvss":[{"version":"4.0","score":6.9,"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","level":"medium"}],"cwes":["CWE-476"],"updated_at":"2026-11-02T15:45:01.218144Z"},{"id":"DEBIAN-CVE-2026-31973","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.","status":"published","published":"2026-03-18T21:16:26.25Z","modified":"2026-11-03T21:00:07.504504513Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"updated_at":"2026-11-03T21:05:16.218603Z"},{"id":"UBUNTU-CVE-2026-31973","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.","status":"published","published":"2026-03-18T21:16:00Z","modified":"2026-10-17T12:58:08.963564363Z","cvss":[{"version":"4.0","score":6.9,"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","level":"medium"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"updated_at":"2026-11-02T16:56:16.036833Z"}]}}
