Sanitize all strings passed to the exec options.
authorMarco Eichelberg <eichelberg@offis.de>
Wed, 3 Jun 2026 19:54:21 +0000 (21:54 +0200)
committerÉtienne Mollier <emollier@debian.org>
Wed, 3 Jun 2026 19:54:21 +0000 (21:54 +0200)
commitcbc92dbf892b653483565ed31e7d956f3b4d29b9
tree18a4f7204154793eac54a53ebdca29b1f2ff969a
parentf63c8f69b3e91fe1a4d7c1803cd3783ede93f1eb
Sanitize all strings passed to the exec options.

Applied-Upstream: edbb085e45788dccaf0e64d71534cfca925784b8
Last-Update: 2026-03-21
Bug: https://support.dcmtk.org/redmine/issues/1194
Bug-Debian: https://bugs.debian.org/1133001
Reviewed-By: Étienne Mollier <emollier@debian.org>
Sanitize the text fields from incoming DICOM associations and DICOM objects
(such as Study Instance UID, SOP Instance UID, Patient's Name) and the
calling SCU's network presentation address by removing special characters
that may be interpreted as shell escape characters when one of the
execution options (e.g. --exec-on-reception) is in use.

Thanks to Machine Spirits UG (haftungsbeschränkt) for the bug report,
detailed analysis and proof of concept.

This closes DCMTK issue #1194.

Gbp-Pq: Name CVE-2026-5663.patch
dcmnet/apps/storescp.cc
ofstd/libsrc/ofstd.cc