Sanitize all strings passed to the exec options.
authorMarco Eichelberg <eichelberg@offis.de>
Mon, 22 Jun 2026 20:22:11 +0000 (22:22 +0200)
committerÉtienne Mollier <emollier@debian.org>
Mon, 22 Jun 2026 20:22:11 +0000 (22:22 +0200)
commit943277a3146db239d8407f010722e36f878f2414
tree5ccc1b7447fe8f54f43e4944ca57181eaaf78077
parent95ef08f67723e2ed17d65c6def297c3e30f68b7d
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