Overview

CVE-2026-97059 is a heap over-read vulnerability in the DCMTK (DICOM Toolkit) software, specifically affecting versions up to 3.7.0. DCMTK is a widely used toolkit for DICOM (Digital Imaging and Communications in Medicine) images, which are a standard for medical imaging data. The vulnerability resides in the ConcatenationLoader component of DCMTK, which is responsible for loading and processing DICOM image data.

Understanding the Vulnerability / Threat

Root Cause Analysis

The root cause of CVE-2026-97059 is a design and implementation issue in the ConcatenationLoader of DCMTK. Specifically, the software fails to validate the PixelData buffer length against the declared NumberOfFrames in DICOM instances. This oversight allows attackers to craft malicious DICOM instances with more frames declared than the buffer can hold, leading to a heap over-read vulnerability. This vulnerability belongs to the CWE-125 category, which involves reading data past the end of a buffer.

Attack Surface & Vector

The attack surface for CVE-2026-97059 is network-adjacent, as attackers need to send crafted DICOM instances to the vulnerable application. The attack vector involves sending a malicious DICOM instance with a manipulated NumberOfFrames attribute that exceeds the buffer length, triggering a heap over-read.

Exploitation Mechanics — Scenario Walkthrough

Scenario: Exploiting a Vulnerable DCMTK Application 1. Initial Position: An attacker has network access to a system running a vulnerable DCMTK application. 2. Triggering the Flaw: The attacker crafts a malicious DICOM instance with a PixelData buffer length that is less than the declared NumberOfFrames. When the vulnerable DCMTK application attempts to load this instance, it fails to validate the buffer length, leading to a heap over-read. 3. What Breaks: The security boundary fails because the application does not properly validate the input data, allowing the attacker to read beyond the buffer's end. This can cause the application to crash or potentially leak sensitive heap memory. 4. Attacker's Prize: The attacker can cause the application to crash, leading to a denial of service (DoS), or potentially exfiltrate sensitive data adjacent to the heap buffer, which could include memory addresses or other sensitive information.

Real-World Impact

The real-world impact of CVE-2026-97059 can be significant, especially in medical environments where DICOM images are routinely processed. An attacker could exploit this vulnerability to disrupt medical imaging services or potentially gain access to sensitive patient data.

Detection & Defense

Immediate Mitigations

- Upgrade DCMTK to version 3.7.1 or later, which includes patches for CVE-2026-97059. - Implement network security measures to restrict access to DCMTK applications.

Detection Strategies

- Monitor network traffic for suspicious DICOM instances. - Implement log analysis to detect anomalies in DCMTK application behavior. - Use SIEM systems to identify potential exploitation attempts.

Long-Term Hardening

- Regularly update and patch DCMTK and related software. - Implement robust input validation for DICOM instances. - Conduct regular security audits and vulnerability assessments.

Key Takeaways

- CVE-2026-97059 is a critical heap over-read vulnerability in DCMTK. - The vulnerability allows for DoS and potential data leakage. - Immediate mitigation involves upgrading to a patched version of DCMTK. - Long-term hardening includes regular updates, input validation, and security audits.

Sources

- National Vulnerability Database (NVD) - CVE-2026-97059