Skip to main content
Vulnerability Database/CVE-2026-44035

CVE-2026-44035: OFFIS DCMTK DICOMDIR Parsing DoS Vulnerability

CVE-2026-44035 is a denial of service vulnerability in OFFIS DCMTK 3.7.0 caused by uncontrolled recursion when parsing DICOMDIR files. Attackers can crash applications using crafted files. This post covers technical details, affected versions, impact, and mitigation steps.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-44035 Overview

CVE-2026-44035 is an uncontrolled recursion vulnerability [CWE-674] in the DcmDicomDir::moveRecordToTree() function located in dcmdata/libsrc/dcdicdir.cc of OFFIS DCMTK 3.7.0. The flaw allows a local attacker to trigger stack exhaustion and crash any process that opens a crafted DICOMDIR file. The malicious file chains directory records through the Offset of Referenced Lower-Level Directory Entity attribute to force deep recursion. Affected applications include dcmgpdir and media viewers built on DCMTK. The issue is fixed in commit ca761f7f3dcaaddaa95be87cf5d736138d7c3a9f.

Critical Impact

Any application that parses an attacker-controlled DICOMDIR file using DCMTK 3.7.0 can be crashed, causing denial of service to medical imaging workflows and viewers.

Affected Products

  • OFFIS DCMTK 3.7.0
  • dcmgpdir utility shipped with DCMTK
  • Third-party DICOM media viewers and tooling built on DCMTK

Discovery Timeline

  • 2026-10-08 - CVE-2026-44035 published to NVD
  • 2026-10-08 - Last updated in NVD database

Technical Details for CVE-2026-44035

Vulnerability Analysis

The vulnerability resides in the DICOMDIR parser, which organizes directory records into a tree structure. The function DcmDicomDir::moveRecordToTree() walks records linked by the Offset of Referenced Lower-Level Directory Entity attribute. The implementation uses unbounded recursion to descend into chained lower-level entities. An attacker crafts a DICOMDIR with a long, deeply nested chain of records so that recursive descent consumes the entire thread stack. When the stack is exhausted, the host process crashes.

The vulnerability is a classic resource-exhaustion issue [CWE-674]. It does not corrupt memory or allow code execution, but it reliably terminates any workflow that opens the file. Imaging workstations, archive utilities, and conversion tools built on DCMTK 3.7.0 are all affected.

Root Cause

The parser trusts the chained offsets in the DICOMDIR without enforcing a maximum recursion depth or converting the traversal into an iterative algorithm. Because record offsets are attacker-controlled fields inside the file, a malformed file can specify arbitrarily deep nesting that the recursive implementation cannot safely handle.

Attack Vector

Exploitation requires an attacker to place a crafted DICOMDIR file where a victim user or automated process will open it. Delivery vectors include removable media (CDs, DVDs, USB drives containing DICOM studies), shared network folders, or email attachments. User interaction, such as opening a study in a DCMTK-based viewer, is required to trigger the crash.

The fix is published in the upstream repository. See the DCMTK security patch commit and DCMTK Issue #1215 for technical context.

c
// Patch metadata from dcmdata/include/dcmtk/dcmdata/dcdicdir.h
/*
 *
- *  Copyright (C) 1994-2019, OFFIS e.V.
+ *  Copyright (C) 1994-2026, OFFIS e.V.
 *  All rights reserved.  See COPYRIGHT file for details.
 *
 *  This software and supporting documentation were developed by
*/
// Source: https://github.com/DCMTK/dcmtk/commit/ca761f7f3dcaaddaa95be87cf5d736138d7c3a9f

Detection Methods for CVE-2026-44035

Indicators of Compromise

  • Repeated crashes or abnormal termination of dcmgpdir, DCMTK-linked viewers, or batch DICOM processors when parsing specific files.
  • Core dumps or stack-overflow signals (SIGSEGV with stack-exhaustion backtraces) referencing DcmDicomDir::moveRecordToTree.
  • DICOMDIR files received from untrusted sources that contain unusually long chains of referenced lower-level directory entities.

Detection Strategies

  • Inspect DICOMDIR files for abnormal depth in the Offset of Referenced Lower-Level Directory Entity chain before passing them to DCMTK tooling.
  • Monitor process telemetry on imaging workstations for crash loops tied to DCMTK binaries.
  • Correlate file-system events (newly introduced DICOMDIR files) with subsequent process crashes to identify suspicious payloads.

Monitoring Recommendations

  • Enable crash reporting and core-dump collection on hosts running DCMTK-based software and forward events to centralized logging.
  • Track versions of DCMTK deployed across clinical and research systems to identify systems still running 3.7.0.
  • Review removable-media and inbound-study ingestion workflows for files that trigger parser failures.

How to Mitigate CVE-2026-44035

Immediate Actions Required

  • Upgrade DCMTK to a build that includes commit ca761f7f3dcaaddaa95be87cf5d736138d7c3a9f.
  • Rebuild and redistribute any downstream applications or viewers statically linked against DCMTK 3.7.0.
  • Restrict ingestion of DICOMDIR files to trusted sources until patched binaries are deployed.

Patch Information

The fix is available in the upstream DCMTK repository. Apply the changes from the DCMTK commit ca761f7 and track remediation progress through DCMTK Issue #1215. Vendors shipping DCMTK-based products should pull the patched sources and rebuild their packages.

Workarounds

  • Validate DICOMDIR files out-of-band and reject files whose directory-record chains exceed a safe depth threshold.
  • Run DCMTK utilities under process supervisors that restart on crash so a DoS condition does not stall batch workflows.
  • Isolate parsers in sandboxed or containerized environments with resource limits to contain stack-exhaustion events.
bash
# Example: enforce a stack size limit when running DCMTK tools in a sandbox
ulimit -s 8192
systemd-run --user --scope \
  -p MemoryMax=512M \
  -p LimitSTACK=8M \
  dcmgpdir --general-purpose /path/to/incoming/DICOMDIR

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.