Dicom Sotto Attacco

DICOM Under Attack: When Medical Images Become a Vector for Attacks

1. A protocol created for a world that no longer exists

DICOM (Digital Imaging and Communications in Medicine) is the standard that, since the 1990s, has underpinned the entire interoperability of medical imaging: from CT scanners to PACS systems, including every reporting workstation. It was designed at a time when hospital networks were isolated, closed systems based on implicit trust between nodes. No mandatory encryption, no strong authentication, no formal data validation: the protocol trusted the network, not the content.

That assumption has not held up well over time. Today, PACS systems still largely communicate in plain text over TCP ports 104 and 11112, and even where the standard calls for a TLS security profile (PS3.15, port 2762), actual adoption remains minimal. The result is a clinical infrastructure that simultaneously exposes sensitive patient data, hospital operational continuity, and—in the most extreme cases—the very reliability of the diagnosis.

2. A measurable, not theoretical, exposure

This is not an abstract risk: it has been measured, repeatedly, for nearly a decade.

  • 2017 — A scan of the entire IPv4 space conducted by Massachusetts General Hospital (a Boston-based university hospital affiliated with Harvard) over the course of 22 hours identified 2,782 unsecured DICOM servers worldwide.
  • 2018 — A researcher at McAfee (a U.S. cybersecurity company), using Shodan (a search engine that indexes Internet-connected devices), found more than 1,100 unprotected, exposed DICOM servers and was able to download images of an unsuspecting patient and 3D-print a model of the patient’s pelvis.
  • 2019-2020 — An investigation by Greenbone Networks (a German vulnerability management company, confirmed by ProPublica and TechCrunch, U.S. news outlets specializing in investigative journalism and technology, respectively) revealed that over one billion medical images were freely accessible online, simply because PACS servers were routinely connected directly to the Internet without passwords, firewalls, or VPNs.
  • 2024-2025 — Trend Micro (a Japanese multinational cybersecurity company) identified 3,627 exposed DICOM servers across 334 healthcare organizations: only 0.14% encrypted traffic using TLS, while 99.56% accepted connections without validating the AE Title. Thirty-one percent of these servers were hosted on the public cloud, and 44% shared the same software configuration (often DCMTK)—a situation that turns a single exploit into a systemic vulnerability across the entire supply chain.

The pattern is clear: the attack surface hasn’t shrunk with the move to the cloud; it has simply shifted.

3. The architectural flaw: “multilingual” files

In addition to the network’s weakness, there is a structural fragility inherent in the format itself. Every DICOM file (.dcm) begins with a 128-byte preamble that the standard deliberately leaves undefined—the “DICM” identifier appears only later, at offset 128. This design choice, intended to ensure compatibility with hybrid formats, has become the vulnerability CVE-2019-11687.

In 2019, researchers at Cylera (a cybersecurity company specializing in the protection of connected medical devices) demonstrated PEDICOM: a DICOM file that hides the header of a Windows executable (PE) in its preamble. The PACS viewer ignores the 128 bytes and displays the image as usual; if the same file is interpreted by the operating system as an executable, it activates the payload. There are no visible anomalies, and no alerts from antivirus or EDR software, which typically exclude medical images from deep scans.

Praetorian (a U.S.-based offensive security and penetration testing firm) then extended the concept to Linux with ELFDICOM and an even simpler “shebang” variant: just 119 characters in the preamble are enough to invoke a remote script and execute arbitrary code. The most obvious mitigation—removing the preamble tolerance—is not feasible: it would retroactively invalidate millions of existing clinical files.

4. From Initial Access to Exfiltration: How a Real Attack Unfolds

Once inside the network, attackers don’t need any exotic tools: they use the same open-source toolkit (DCMTK) that technical staff use every day.

The AE Title—the identifier that the PACS uses to recognize a trusted node—is a plaintext string: it can be intercepted with a network sniffer (DICOM messages travel in clear text) or cracked using dictionaries. From there, echoscu maps the infrastructure, findscu enumerates patients via C-FIND queries without granular access controls, and dcmsend/dcmodify allow fraudulent files—including the multilingual files described above—to be injected directly into the PACS. In parallel, fuzzing techniques (Radamsa for black-box testing, AFLNet for gray-box testing guided by code coverage) continue to uncover new exploitable crash conditions in the parsers.

The common thread: none of these techniques requires exploiting a sophisticated zero-day vulnerability. They take advantage of the lack of strong authentication and encryption that has been inherent in the protocol for thirty years.

5. When a cyberattack Is No Longer Just an IT Problem

Two incidents mark the point at which the DICOM vulnerability ceases to be a compliance risk and becomes a direct clinical risk.

Surgical ransomware. In 2023, the BlackCat/ALPHV (group (a cybercriminal collective that operates on a Ransomware-as-a-Service model—that is, it rents out its extortion tools to other actors) attacked the Lehigh Valley Health Network (a hospital network in Pennsylvania, USA), specifically targeting radiology PACS servers rather than general IT systems. After exfiltrating the images using C-FIND/C-MOVE queries, it encrypted the servers and, when the hospital refused to pay, published online the scans of cancer patients along with their personal information. Studies on the effects of such downtime are unequivocal: the resulting delays in time-sensitive emergencies (stroke, cardiac arrest) lead to a measurable increase in in-hospital mortality.

Algorithmic manipulation. In 2019, a team from Ben-Gurion University (an Israeli university with one of the world’s most active cybersecurity research centers) demonstrated CT-GAN: a man-in-the-middle attack that intercepts a CT/MRI scan in transit on the local network (which lacks TLS and digital signatures) and uses a generative adversarial network to insert or remove lung nodules in real time, before the image reaches the PACS. In the tests, radiologists misdiagnosed cancer in 99% of the scans manipulated with injections and declared 94% of patients with digitally removed tumors to be healthy—even after being warned that some images were falsified. Defensive AI-based screening tools failed 100% of the time.

At that point, cybersecurity no longer protects just the data—it protects the reliability of the diagnosis itself.

6. A Summary of Some Recent Vulnerabilities

| CVE | Software | Impact |
|—|—|—|
| CVE-2023-33466 | Orthanc (< 1.12.0) | Arbitrary file overwrite → RCE via Lua |
| CVE-2026-50003 | DCMTK (< 3.7.0) | Path traversal, CVSS 9.8 |
| CVE-2024-25578 | MicroDicom Viewer | Buffer overflow when opening the file |
| CVE-2026-3650 | GDCM 3.2.2 | Memory leak → DoS |
| CVE-2026-5437/45 | Orthanc (< 1.12.11) | Nove falle, da GZIP bomb a heap overflow |
| CVE-2026-17264 | RadiAnt Viewer | Heap out-of-bounds write on a corrupted JPEG file |
| CVE-2026-12473 | OHIF Web Viewer | SSRF con leak di token OIDC |

The common thread: most bugs are concentrated in the ingestion and decoding of images—that is, precisely at the point where a “clinical” file is converted into data processed by the system.

7. The D/Vision Lab Approach: Safety as a Design Requirement

Countermeasures at the hospital infrastructure level exist and are well known—network segmentation, end-to-end TLS, and behavioral monitoring. But much of the risk described so far stems from the design of the imaging software itself. And this is where, as a team that builds DICOM tools every day, we choose to take action.

  • A stack that, by design, prevents an entire class of vulnerabilities. Most of the most serious CVEs in recent years (Orthanc, DCMTK, GDCM) stem from manual memory management in C/C++ libraries written decades ago. Our Lumen imaging engine, based on Cornerstone3D and developed in a modern web environment, eliminates at the source the buffer overflows and heap corruptions that plague legacy parsers: it is not an additional layer of protection added on top of the rendering process; it is a direct result of our technological choices.
  • Controlled access instead of direct exposure. Our D/Vision platform—the cloud-based viewer we’ve developed for archiving, sharing, and second opinions—does not replicate the “open network PACS” model that has caused most documented exposures: access to images always requires authentication and granular permissions, never through a DICOM port directly accessible from the Internet.
  • Server-side rendering when the data must never leave the network perimeter. In contexts where intellectual property or clinical confidentiality are non-negotiable constraints, our server-side rendering architecture (which we’ve also discussed in a separate technical article) allows for the visualization of complete DICOM datasets without the raw data ever being transmitted to the client: only pixels, not files, are sent to the browser.
  • End-to-end expertise—not just in imaging or security alone. The team combines expertise in 3D visualization (VTK, three.js), native support for the DICOM standard, and modern web engineering: a combination that allows us to assess the risk of a clinical imaging project as a whole, rather than treating security as a separate issue entrusted to third parties after integration has already taken place.

Network-level safeguards remain essential and are largely the responsibility of those who manage the hospital infrastructure—but the portion of the risk that stems from software, from the design of the imaging platform to the architectural choices regarding rendering, is the foundation upon which we build our proposal.

8. Conclusion

DICOM continues to be, at the same time, the primary diagnostic tool of modern medicine and—by its very nature—one of the most neglected vulnerabilities in the healthcare sector. This is not due to a single flaw that can be fixed with a patch, but rather to the combination of three distinct technical shortcomings: infrastructure exposed due to configuration negligence, a file format that tolerates ambiguity for the sake of backward compatibility, and parsers written in C/C++ that carry decades of memory management risks.

Those who design medical imaging software—including us—cannot treat these three levels separately. The same logic that guided us in choosing between server-side and client-side rendering architectures—where the underlying question is always “who has access to the raw data and under what conditions”—applies here on a much larger scale: as long as the transmission and validation of DICOM files remain an exception rather than a basic requirement, the medical image will continue to be both the most valuable diagnostic tool and the quietest weapon available to those who wish to compromise it.

Latest articles

DICOM Presentation State: How It Works, How to Write One, How to Read One

immagini e PDF

How to automate the sending of images, PDFs and DICOM files to the PACS

Medical Imaging in the Cloud: The Market Over the Next 5 Years

contact area

For information, projects, ideas, write to us