Description
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.
Published: 2026-10-15
Score: 6.9 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Stack buffer overflow that can crash or corrupt memory
Action: Patch Now
AI Analysis

Impact

nifti_clib through version 3.0.1 contains a stack-based out‑of‑bounds read and write vulnerability in the function nifti_convert_n2hdr2nim, where the NIfTI‑2 dim[0] field is never range‑checked. This allows an attacker to provide a 540‑byte NIfTI‑2 header that the library will parse without validation. The unchecked dimension can cause the routine to read beyond the bounds of a stack buffer and then write beyond the buffer, leading to a crash or memory corruption. The flaw is catalogued as CWE‑787 and can compromise the stability and integrity of any application that uses the vulnerable library to read NIfTI‑2 files.

Affected Systems

The affected product is the NIFTI‑Imaging:nifti_clib library, all releases up to and including 3.0.1. Any application that includes or links against these versions and calls nifti_image_read to process NIfTI‑2 files is at risk. This includes both desktop and server‑side medical imaging software that accepts user supplied headers. No other vendors or products are explicitly mentioned in the data.

Risk and Exploitability

The CVSS score of 6.9 classifies this as a medium‑severity issue. The EPSS score is reported as less than 1 percent, indicating a very low probability of exploitation at this time, and the flaw is not listed in the CISA KEV catalog, so no publicly known exploits are documented. Based on the description, it is inferred that the attack vector requires an attacker to deliver a specially crafted NIfTI‑2 header to a process that calls nifti_image_read – for example, by placing a malicious file on a disk that the application will read or by sending data over a network if the application accepts remote uploads. Because the vulnerability involves a stack buffer overflow with no direct evidence of code execution, the primary risk is denial of service or accidental memory corruption rather than privilege escalation or remote code execution.

Generated by OpenCVE AI on October 16, 2026 at 16:39 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to the latest version of nifti_clib, which removes the unchecked dim[0] validation.
  • If upgrade is delayed, validate the NIfTI‑2 dim[0] field before passing it to nifti_convert_n2hdr2nim, rejecting values outside the allowed range.
  • Enable stack protection mechanisms such as stack canaries, ASLR, or address‑space randomization to reduce the likelihood of a successful exploit.

Generated by OpenCVE AI on October 16, 2026 at 16:39 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 15 Oct 2026 22:00:00 +0000

Type Values Removed Values Added
Description 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.
Title nifti_clib through 3.0.1 Stack Out-of-Bounds Access via nifti_convert_n2hdr2nim
Weaknesses CWE-787
References
Metrics cvssV3_1

{'score': 6.1, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:H'}

cvssV4_0

{'score': 6.9, 'vector': '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'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-10-15T21:43:21.786Z

Reserved: 2026-10-15T19:33:21.431Z

Link: CVE-2026-111275

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Deferred

Published: 2026-10-15T22:19:28.623

Modified: 2026-10-16T18:25:45.343

Link: CVE-2026-111275

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-16T16:45:14Z

Weaknesses