{"answers":{"affected":"It affects 1 product.","exploited":"There is no known exploitation of CVE-2026-31973 in the wild and no public exploit code.","fix":"No fix has been published for CVE-2026-31973 yet. Limit exposure of the affected software until one is available.","what":"CVE-2026-31973 is a medium-severity vulnerability in samtools, published on 18 Mar 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-31973 and fix it if it is affected.\n\nWhat it is: CVE-2026-31973 is a medium-severity vulnerability in samtools, published on 18 Mar 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-31973 in the wild and no public exploit code.\n\nAffected product: samtools. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-31973/ (Markdown: https://insights.sbomify.com/CVE-2026-31973/index.md)","id":"CVE-2026-31973","markdown":"https://insights.sbomify.com/CVE-2026-31973/index.md","name":"CVE-2026-31973","record":{"aliases":["DEBIAN-CVE-2026-31973","GHSA-x86f-q6fj-cm43","UBUNTU-CVE-2026-31973"],"analysis":{"component_type":"desktop_application","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"Bioinformatics tool","requires_auth":"none","summary":"A missing error check in samtools cram-size allows a NULL pointer dereference, causing the application to crash when processing malformed CRAM files.","user_interaction":"not_required","vuln_class":"null_dereference"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"samtools","vendor":"samtools"}],"cvss":{"score":6.9,"severity":"medium","source":"cna","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","version":"4.0"},"cwes":[{"id":"CWE-476","name":"NULL Pointer Dereference"}],"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.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":false,"headline":"NULL pointer dereference in samtools cram-size","id":"CVE-2026-31973","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"null_dereference","year":"2026"},"n_packages":0,"n_references":2,"next":{"headline":"Blind SSRF on OpenProject instance via webhooks","id":"CVE-2026-31974"},"packages":[],"prev":{"headline":"samtools mpileup has use-after-free leading to an invalid read","id":"CVE-2026-31972"},"products":["samtools"],"published":"2026-03-18","related":[{"cvss_score":6.9,"headline":"samtools mpileup has use-after-free leading to an invalid read","id":"CVE-2026-31972","kev_date_added":null,"published":"2026-03-18"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-03-19","vendors":["samtools"]},"summary":"A missing error check in samtools cram-size allows a NULL pointer dereference, causing the application to crash when processing malformed CRAM files.","url":"https://insights.sbomify.com/CVE-2026-31973/"}