Project

General

Profile

Actions

Bug #1224

closed

xml2dcm parseDataSet / parseSequence mutual recursion

Added by Marco Eichelberg 3 days ago. Updated about 2 hours ago.

Status:
Closed
Priority:
Normal
Category:
Library and Apps
Target version:
-
Start date:
2026-06-16
Due date:
% Done:

100%

Estimated time:
1:00 h
Module:
dcndata
Operating System:
Compiler:

Description

DcmXMLParseHelper::parseDataSet() at xml2dcm.cc:618 calls parseSequence() for every <sequence> element. parseSequence() at xml2dcm.cc:457 calls parseDataSet() for every `<item>` element. This mutual recursion has no depth limit. At 15,000 nested levels the default 8 MB stack is exhausted.

Reported 2026-05-19 by Arjun Basnet, Senior Security Researcher, Securin.

This issue has been registered as CVE-2026-44036.


Files

poc_007_deep.xml (879 KB) poc_007_deep.xml PoC file that causes a segmentation fault when processed with xml2dcm Marco Eichelberg, 2026-06-16 18:11
Actions #1

Updated by Marco Eichelberg 3 days ago

  • % Done changed from 0 to 100
  • Estimated time set to 1:00 h
  • Private changed from No to Yes

Closed by commit #87f256d73.

Actions #2

Updated by Marco Eichelberg 2 days ago

  • Status changed from New to Closed
Actions #3

Updated by Marco Eichelberg about 2 hours ago

  • Private changed from Yes to No
Actions

Also available in: Atom PDF