Sanitize all strings passed to the exec options.
authorMarco Eichelberg <eichelberg@offis.de>
Thu, 4 Jun 2026 20:13:25 +0000 (22:13 +0200)
committerÉtienne Mollier <emollier@debian.org>
Thu, 4 Jun 2026 20:13:25 +0000 (22:13 +0200)
commita28da1e2bb9ce4ffdc6f13d198d63cfa4b281bc3
treeaa4978c0285c52b04f6a86c6d7a0857753755fa0
parenta4bfd9eb16187659f7e9280b4fb602694e2f4303
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