{"id":"UBUNTU-CVE-2026-111275","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-17T12:59:52.513693428Z","published":"2026-10-16T00:00:00Z","upstream":["CVE-2026-111275"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2026-111275"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2026-111275"},{"type":"REPORT","url":"https://github.com/NIFTI-Imaging/nifti_clib"},{"type":"REPORT","url":"https://github.com/NIFTI-Imaging/nifti_clib/blob/96b9954fafcf3bd69a4ee2091b0d707ed2077697/nifti2/nifti2_io.c#L4985-L5026"},{"type":"REPORT","url":"https://github.com/NIFTI-Imaging/nifti_clib/issues/195"},{"type":"REPORT","url":"https://github.com/NIFTI-Imaging/nifti_clib/pull/197"},{"type":"REPORT","url":"https://hackmd.io/@haind-pwn/nifticlib-nifti2-dim0-oob"},{"type":"REPORT","url":"https://www.vulncheck.com/advisories/nifti-clib-through-3.0.1-stack-out-of-bounds-access-via-nifti-convert-n2hdr2nim"}],"affected":[{"package":{"name":"nifticlib","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/nifticlib?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.0.0-2"],"ecosystem_specific":{"binaries":[{"binary_name":"libnifti2","binary_version":"2.0.0-2"},{"binary_name":"nifti-bin","binary_version":"2.0.0-2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-111275.json"}},{"package":{"name":"nifticlib","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/nifticlib?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.0.0-2","2.0.0-2build1"],"ecosystem_specific":{"binaries":[{"binary_name":"libnifti2","binary_version":"2.0.0-2build1"},{"binary_name":"nifti-bin","binary_version":"2.0.0-2build1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-111275.json"}},{"package":{"name":"nifticlib","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/nifticlib?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.0.0-3","2.0.0-3ubuntu1"],"ecosystem_specific":{"binaries":[{"binary_name":"libnifti2","binary_version":"2.0.0-3ubuntu1"},{"binary_name":"nifti-bin","binary_version":"2.0.0-3ubuntu1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-111275.json"}},{"package":{"name":"nifticlib","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/nifticlib?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.0.1-8"],"ecosystem_specific":{"binaries":[{"binary_name":"libnifti2-2","binary_version":"3.0.1-8"},{"binary_name":"libnifticdf2","binary_version":"3.0.1-8"},{"binary_name":"libniftiio2","binary_version":"3.0.1-8"},{"binary_version":"3.0.1-8","binary_name":"libznz3"},{"binary_version":"3.0.1-8","binary_name":"nifti-bin"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-111275.json"}},{"package":{"name":"nifticlib","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/nifticlib?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.0.1-9","3.0.1-9.1","3.0.1-9.1build1","3.0.1-9.1ubuntu2"],"ecosystem_specific":{"binaries":[{"binary_version":"3.0.1-9.1ubuntu2","binary_name":"libnifti2-2"},{"binary_name":"libnifticdf2","binary_version":"3.0.1-9.1ubuntu2"},{"binary_name":"libniftiio2t64","binary_version":"3.0.1-9.1ubuntu2"},{"binary_name":"libznz3t64","binary_version":"3.0.1-9.1ubuntu2"},{"binary_version":"3.0.1-9.1ubuntu2","binary_name":"nifti-bin"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-111275.json"}},{"package":{"name":"nifticlib","ecosystem":"Ubuntu:26.10","purl":"pkg:deb/ubuntu/nifticlib?arch=source&distro=stonking"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.0.1-9.1ubuntu3"],"ecosystem_specific":{"binaries":[{"binary_name":"libnifti2-2","binary_version":"3.0.1-9.1ubuntu3"},{"binary_version":"3.0.1-9.1ubuntu3","binary_name":"libnifticdf2"},{"binary_name":"libniftiio2t64","binary_version":"3.0.1-9.1ubuntu3"},{"binary_version":"3.0.1-9.1ubuntu3","binary_name":"libznz3t64"},{"binary_name":"nifti-bin","binary_version":"3.0.1-9.1ubuntu3"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-111275.json"}},{"package":{"name":"nifticlib","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/nifticlib?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.0.1-9.1ubuntu2","3.0.1-9.1ubuntu3"],"ecosystem_specific":{"binaries":[{"binary_name":"libnifti2-2","binary_version":"3.0.1-9.1ubuntu3"},{"binary_name":"libnifticdf2","binary_version":"3.0.1-9.1ubuntu3"},{"binary_name":"libniftiio2t64","binary_version":"3.0.1-9.1ubuntu3"},{"binary_name":"libznz3t64","binary_version":"3.0.1-9.1ubuntu3"},{"binary_name":"nifti-bin","binary_version":"3.0.1-9.1ubuntu3"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-111275.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:H"},{"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"},{"type":"Ubuntu","score":"medium"}]}