Grassroot DICOM Overlay::GrabOverlayFromPixelData out-of-bounds read vulnerability
An out-of-bounds read vulnerability exists in the Overlay::GrabOverlayFromPixelData function of Grassroot DICOM 3.024. A specially crafted DICOM file can cause the program to read beyond the allocated buffer, potentially leaking sensitive information from memory.
Originally disclosed on Cisco Talos
An out-of-bounds read vulnerability exists in the Overlay::GrabOverlayFromPixelData functionality of Grassroot DICOM 3.024. A specially crafted DICOM file can lead to an information leak.
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 code calculates the length of the pixel data buffer using the overlay dimensions instead of the actual data length, causing the end pointer to exceed the buffer bounds.
Impact
An attacker could potentially leak sensitive information from memory, such as function pointers and memory layouts, which could be used for further exploitation.
What the attacker needed
Malicious DICOM file
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 bug in a medical image library. When the library reads a malformed image file, it can be tricked into reading memory outside the intended area, which might expose private data. The bug is like reading past the end of a book and seeing notes written on the next page.
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.