{"id":"CVE-2026-111275","summary":"nifti_clib through 3.0.1 Stack Out-of-Bounds Access via nifti_convert_n2hdr2nim","details":"nifti_clib through 3.0.1 contains a stack-based out-of-bounds read and write vulnerability in nifti_convert_n2hdr2nim() because the NIfTI-2 dim[0] value is never range-checked. Attackers can supply a crafted 540-byte NIfTI-2 header read via nifti_image_read() to crash applications or corrupt stack memory.","modified":"2026-10-17T02:48:20.594148284Z","published":"2026-10-15T21:43:21.786Z","database_specific":{"cna_assigner":"VulnCheck","cwe_ids":["CWE-787"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/111xxx/CVE-2026-111275.json"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/111xxx/CVE-2026-111275.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-111275"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/nifti-clib-through-3.0.1-stack-out-of-bounds-access-via-nifti-convert-n2hdr2nim"},{"type":"REPORT","url":"https://github.com/NIFTI-Imaging/nifti_clib/issues/195"},{"type":"FIX","url":"https://github.com/NIFTI-Imaging/nifti_clib/pull/197"},{"type":"PACKAGE","url":"https://github.com/NIFTI-Imaging/nifti_clib"},{"type":"ARTICLE","url":"https://github.com/NIFTI-Imaging/nifti_clib/blob/96b9954fafcf3bd69a4ee2091b0d707ed2077697/nifti2/nifti2_io.c#L4985-L5026"},{"type":"ARTICLE","url":"https://hackmd.io/@haind-pwn/nifticlib-nifti2-dim0-oob"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/nifti-imaging/nifti_clib","events":[{"introduced":"0"},{"fixed":"96b9954fafcf3bd69a4ee2091b0d707ed2077697"}],"database_specific":{"source":["AFFECTED_FIELD","DESCRIPTION"],"extracted_events":[{"introduced":"0"},{"last_affected":"3.0.1"},{"fixed":"3.0.1"}]}}],"versions":["v3.0.0","v3.0.0beta1","v2.0.0","v1.0.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-111275.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:H/SC:N/SI:N/SA:N"}]}