nifti_clib through 3.0.1 Stack Out-of-Bounds Access via nifti_convert_n2hdr2nim
NIFTI-Imaging nifti_clib
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| NIFTI-Imaging nifti_clib |
| No fix yet |
Original 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.
From the CVE record · VulnCheck