Actions
Bug #1215
closedUnbounded recursion in DcmDicomDir::moveRecordToTree()
Start date:
2026-05-24
Due date:
% Done:
100%
Estimated time:
2:00 h
Module:
dcmdata
Operating System:
Compiler:
Description
The method DcmDicomDir::moveRecordToTree() (dcmdata/libsrc/dcdicdir.cc) recurses on each child directory record without a depth limit. A maliciously crafted DICOMDIR with 10,000+ chained records exhausts the stack.
The issue can be demonstrated by compiling DCMTK with -fsanitize=address and then running the following command in a directory where the two PoC files are present: dcmmkdir --append IMAGE
Reported 2026-05-19 by Arjun Basnet, Senior Security Researcher, Securin.
Files
Actions