Crafted DICOM crashes dcm2niix via out-of-bounds CSA header read
Original title: Security report: out-of-bounds read in dcm2niix CSA header parsing (crafted DICOM causes crash, CWE-125)
A few-hundred-byte file triggers SIGSEGV in sanitizer and release builds with no special flags.
HeavenMonkey reported an out-of-bounds read in dcm2niix Siemens CSA header parsing. A crafted DICOM of a few hundred bytes deterministically crashes the tool with SIGSEGV when opened as dcm2niix file.dcm. The reporter points to CSA item-parsing loops in console/nii_dicom.cpp. The available post is cut off before naming a fix, CVE, or affected versions.
Unconfirmed: The mailing-list post is truncated, so any fix and impact beyond a crash are unknown.
- The crash occurs in both sanitizer and release builds.
- The reporter classifies the bug as CWE-125.
- No fixed version or CVE appears in the available text.
Impact: out-of-bounds read that crashes dcm2niix
| Product | Affected |
|---|---|
| dcm2niix | — |
- Products
- dcm2niix
From the original article
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. No special flags are needed - `dcm2niix file.
seclists.org
A short excerpt; the article and its images belong to the publisher. Summary, key facts and assessment above are AI-written from the article and can be wrong.