Project

General

Profile

Actions

Bug #1206

closed

Remote Heap Buffer Overflow in dcmqrscp

Added by Marco Eichelberg 18 days ago. Updated about 10 hours ago.

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

100%

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

Description

In the function deleteOldestImages() , an array named StudyArray is allocated on the heap with a fixed size of MAX_NUMBER_OF_IMAGES (defined as 10000 in dcmqridx.h ).
The code then enters an unbounded loop to populate this array by iterating through the index database. There is no bounds check on the counter ( nbimages ) before writing to the array.
If a study contains more than 10000 images and the storage quota ( maxBytesPerStudy , defined in dcmqrscp's configuration file) is exceeded, the function writes past the end of the StudyArray buffer, leading to a buffer overflow on the heap.

Reported 2026-03-29 by DCMTK user 'elp3pinill0'.


Related issues 1 (0 open1 closed)

Is duplicate of DCMTK - Bug #1199: Security Vulnerability Report: Remote Heap Buffer Overflow in dcmqrscp (deleteOldestImages)Closed2026-04-02

Actions
Actions #1

Updated by Marco Eichelberg 18 days ago

Closed by commit #0f78a4ef6.

Actions #2

Updated by Marco Eichelberg 18 days ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100
  • Estimated time set to 1:00 h
Actions #3

Updated by Marco Eichelberg 18 days ago

  • Private changed from No to Yes
Actions #4

Updated by Marco Eichelberg 16 days ago

This issue was apparently logged twice. See issue 1199: http://support.dcmtk.org/redmine/issues/1199

Actions #5

Updated by Jörg Riesmeier 16 days ago

  • Is duplicate of Bug #1199: Security Vulnerability Report: Remote Heap Buffer Overflow in dcmqrscp (deleteOldestImages) added
Actions #6

Updated by Marco Eichelberg about 10 hours ago

  • Private changed from Yes to No
Actions

Also available in: Atom PDF