Submit #786061: OFFIS DCMTK up to 3.7.0 OS Command Injectioninfo

TitleOFFIS DCMTK up to 3.7.0 OS Command Injection
DescriptionAn OS command injection vulnerability was identified in OFFIS DCMTK up to 3.7.0 in the storescp application. When configured with --exec-on-reception or --exec-on-eostudy, the placeholders #f (filename), #p (path), and #r (reverse DNS hostname) are derived from attacker-controlled input and passed to /bin/sh -c without adequate sanitization of shell metacharacters. This allows unauthenticated remote code execution via a crafted DICOM C-STORE request. The fix applies the existing sanitizeAETitle() character allowlist to these placeholders. This vulnerability was coordinated with OFFIS. The fix has been committed to the DCMTK testing branch (https://github.com/DCMTK/dcmtk/commit/edbb085e45788dccaf0e64d71534cfca925784b8) and is expected to be merged into the public master branch shortly. Our advisory and the OFFIS issue tracker entry (https://support.dcmtk.org/redmine/issues/1194) are intentionally not yet public and will be published once the CVE has been assigned. The vulnerability was found by Simon Weber and Volker Schönefeld (Machine Spirits)
Source⚠️ https://machinespirits.com/advisory/2e1627/
User
 simon4machinespirits (UID 96718)
Submission03/23/2026 10:01 (15 days ago)
Moderation04/06/2026 09:55 (14 days later)
StatusAccepted
VulDB entry355486 [OFFIS DCMTK up to 3.7.0 storescp dcmnet/apps/storescp.cc executeOnReception/executeOnEndOfStudy os command injection]
Points20

Do you know our Splunk app?

Download it now for free!