Posted by HeavenMonkey on Nov 17 Hi Chris, I would like to report a security issue in dcm2niix's Siemens CSA header parsing. Short version: a crafted DICOM file of a few hundred bytes causes a deterministic out-of-bounds read that crashes dcm2niix with SIGSEGV, in both sanitizer and release builds.
Briefing
Written from the coverage below · deepseek-v4.1-flash
A crafted few-hundred-byte DICOM file triggers a deterministic out-of-bounds read in dcm2niix's Siemens CSA header parsing in console/nii_dicom.cpp, crashing with SIGSEGV in both sanitizer and release builds without special flags. The reporter credits five CSA item-parsing helpers that copy a 16-byte field.
Why it mattersdcm2niix is widely used in neuroimaging pipelines; a tiny malformed DICOM can crash processing, and untrusted medical files may cause denial of service.
ActionUpdate dcm2niix to a release containing the CSA bounds-check fix; until then avoid running untrusted DICOM files through it.
Coverage
1 article