Grassroot DICOM LookupTable::SetLUT out-of-bounds write vulnerability
A heap-based buffer overflow exists in the LookupTable::SetLUT function of Grassroot DICOM 3.0.23 due to a missing size check. An attacker can provide a malicious DICOM file to trigger memory corruption.
Originally disclosed on Cisco Talos
A heap-based buffer overflow vulnerability exists in the LookupTable::SetLUT functionality of Mathieu Malaterre Grassroot DICOM 3.0.23. A specially crafted malformed file can lead to memory corruption.
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 does not verify that the length of the input array matches the size of the destination buffer before copying, leading to an out-of-bounds write.
Impact
An attacker could cause memory corruption, potentially leading to code execution or a denial of service.
What the attacker needed
Malicious DICOM file
The fix
The vendor has fixed the code on their sourceforge site.
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 corruption bug in a library that reads medical image files. When the program processes a malformed file, it writes data past the end of a buffer, which can crash the program or potentially allow an attacker to run code. The flaw is a missing check on the size of the data before copying it.
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.