{"id":"CVE-2026-31973","state":"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.","publishedAt":"2026-03-18T20:34:00.846Z","updatedAt":"2026-03-19T16:14:59.386Z","severity":{"score":6.9,"label":"Medium","version":"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","source":"GitHub_M"},"assigner":"GitHub_M","products":["samtools samtools"],"affected":[{"vendor":"samtools","product":"samtools","versions":[{"version":">= 1.17, < 1.21.1","status":"affected"},{"version":">= 1.22, < 1.22.2","status":"affected"},{"version":"= 1.23","status":"affected"}]}],"references":["https://github.com/samtools/samtools/security/advisories/GHSA-x86f-q6fj-cm43","https://github.com/samtools/samtools/commit/06fc2a219b3d7c94d3f412c09f6d1efd51199f2f","http://www.openwall.com/lists/oss-security/2026/03/18/12"],"weaknesses":["CWE-476"],"ingestedAt":"2026-10-29T20:11:40.391Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/31xxx/CVE-2026-31973.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-31973","state":"PUBLISHED","datePublished":"2026-03-18T20:34:00.846Z","dateUpdated":"2026-03-19T16:14:59.386Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-03-10T15:40:10.486Z"},"containers":{"cna":{"title":"NULL pointer dereference in samtools cram-size","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"samtools","product":"samtools","versions":[{"version":">= 1.17, < 1.21.1","status":"affected"},{"version":">= 1.22, < 1.22.2","status":"affected"},{"version":"= 1.23","status":"affected"}]}],"references":[{"url":"https://github.com/samtools/samtools/security/advisories/GHSA-x86f-q6fj-cm43","name":"https://github.com/samtools/samtools/security/advisories/GHSA-x86f-q6fj-cm43","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/samtools/samtools/commit/06fc2a219b3d7c94d3f412c09f6d1efd51199f2f","name":"https://github.com/samtools/samtools/commit/06fc2a219b3d7c94d3f412c09f6d1efd51199f2f","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV4_0":{"attackVector":"NETWORK","attackComplexity":"LOW","attackRequirements":"NONE","privilegesRequired":"NONE","userInteraction":"NONE","vulnConfidentialityImpact":"NONE","vulnIntegrityImpact":"LOW","vulnAvailabilityImpact":"LOW","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","subAvailabilityImpact":"NONE","baseScore":6.9,"baseSeverity":"MEDIUM","vectorString":"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","version":"4.0"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-476","lang":"en","description":"CWE-476: NULL Pointer Dereference","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-03-18T20:34:00.846Z"},"source":{"advisory":"GHSA-x86f-q6fj-cm43","discovery":"UNKNOWN"}},"adp":[{"title":"CVE Program Container","references":[{"url":"http://www.openwall.com/lists/oss-security/2026/03/18/12"}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2026-03-18T23:08:20.721Z"}},{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-03-19T16:14:49.923184Z","id":"CVE-2026-31973","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-03-19T16:14:59.386Z"}}]}}}