Skip to content
Memory corruption Advisory Advanced CVE-2026-22879

vtk vtk-dicom vtkDICOMItem::FindDataElementOrInsert heap-based buffer overflow vulnerability

A crafted DICOM file causes an out-of-bounds write in the vtkDICOMItem::FindDataElementOrInsert function of vtk-dicom 9.5.2, corrupting heap chunk metadata. An attacker who supplies a malicious file could trigger heap memory corruption, potentially leading to code execution.

Emmanuel Tacheau Follow

Originally disclosed on Cisco Talos

High 8.1 View original

A heap-based buffer overflow vulnerability exists in the vtkDICOMItem::FindDataElementOrInsert functionality of vtk-dicom (version(s): 9.5.2). A specially crafted DICOM file can lead to heap-based memory corruption.

Emmanuel Tacheau, on Cisco Talos

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely a logic error in the element list management: deleting an entry decrements the element counter and nulls its pointers, so a later insert computes an index that overwrites an existing element instead of reusing the freed slot, and the buffer never doubles, producing an out-of-bounds write.

Impact

Processing a malicious DICOM file could corrupt heap metadata and possibly lead to code execution; the report demonstrates a crash (abort) rather than a working exploit.

What the attacker needed

Victim opens a crafted DICOM file

The fix

The vendor released a patch, according to the timeline.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

DICOM is a standard file format for medical images such as CT and MRI scans. This library reads those files, and a bug in how it keeps its internal list of data entries means a malformed file can make it write past the end of a memory buffer. That corrupts bookkeeping data used by the memory allocator, which can crash the program and, in principle, let an attacker run their own code.

What is Memory corruption?

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.

More by Emmanuel Tacheau

View all

58 more disclosed reports, best first.

More from Cisco Talos

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Memory corruption

The lesson behind this report.

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.