Skip to content
Memory corruption Advisory Advanced CVE-2024-52333

OFFIS DCMTK determineMinMax improper array index validation vulnerability

An improper array index validation in the determineMinMax function of OFFIS DCMTK 3.6.8 allows a specially crafted DICOM file to cause an out-of-bounds write. An attacker can provide a malicious file to trigger this vulnerability, potentially leading to memory corruption.

Emmanuel Tacheau Follow

Originally disclosed on Cisco Talos

High 8.4 View original

An improper array index validation vulnerability exists in the determineMinMax functionality of OFFIS DCMTK 3.6.8. A specially crafted DICOM file can lead to an out-of-bounds write.

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

The code uses a pixel value from the file as an index into a lookup table without checking that the value is within the table's bounds.

Impact

A crafted DICOM file could cause a heap buffer overflow, leading to memory corruption or a crash, and potentially to code execution.

What the attacker needed

Malicious DICOM file; victim processes the file

The fix

The vendor addressed the issue in a commit, though the text does not describe the fix details.

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.

This report describes a memory safety bug in a medical image library. When the software processes a specially crafted image file, it writes data past the end of a buffer, which can crash the program or potentially allow an attacker to run their own code. The flaw is that the software does not check whether a value taken from the file fits within the buffer it allocated.

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.