Skip to content

Cyber ·

Out-of-bounds read in dcm2niix when parsing CSA header of a DICOM file

An oss-sec feed report describes a DICOM file of a few hundred bytes that makes dcm2niix read out of bounds and crash with SIGSEGV, in both sanitizer and release builds.

A report posted to the oss-sec feed on 17 November by HeavenMonkey, addressed to the dcm2niix maintainer, describes a deterministic out-of-bounds read while parsing Siemens CSA headers. A specially crafted DICOM file of a few hundred bytes crashes the program with SIGSEGV. The problem appears in builds with sanitizers and in release builds, and needs no special options: running the converter on the input file is enough. According to the report, the cause lies in CSA item parsing loops in five helper functions in console/nii_dicom.cpp, which copy 16-byte blocks without checking the remaining size. The feed text is truncated, so the full description of the fix and any severity rating should be checked in the original source. For teams that convert DICOM exams to other formats, the practical point is to treat untrusted input files as hostile, keep the tool updated when an official fix is released, and run conversions in an isolated environment. Rota Nacional does not perform DICOM conversion and does not fix third-party libraries.

Original source: Relatório de segurança: leitura fora dos limites ao analisar cabeçalho CSA no dcm2niix causa falha

Curation · Inova

Get the essentials

Privacy, AI engineering and security in your inbox.

At most one digest per day, when there is news. Cancel at any time. We use your account's verified email.

Privacy

Looking for something else?DocumentationContact