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

OFFIS DCMTK nowindow improper array index validation vulnerability

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

Emmanuel Tacheau Follow

Originally disclosed on Cisco Talos

High 8.4 View original

An improper array index validation vulnerability exists in the nowindow 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

Likely the nowindow function fails to validate that the index used to read from the lookup table stays within the allocated buffer size, allowing an out-of-bounds write.

Impact

A crafted DICOM file could cause memory corruption or a use-after-free, potentially leading to code execution or a crash.

What the attacker needed

Victim opens a malicious DICOM file

The fix

The vendor released a patch to address the vulnerability.

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 imaging 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 bug is in a function that handles image display settings.

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.