Grassroot DICOM RLECodec::DecodeByStreams out-of-bounds read vulnerability
An out-of-bounds read vulnerability exists in the RLECodec::DecodeByStreams function of Grassroot DICOM 3.024. A specially crafted DICOM file can cause the function to read beyond the bounds of a fixed-size array, potentially leaking heap data.
Originally disclosed on Cisco Talos
An out-of-bounds read vulnerability exists in the RLECodec::DecodeByStreams functionality of Grassroot DICOM 3.024. A specially crafted DICOM file can lead to leaking heap data.
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 number of segments read from the file is not validated against the fixed size of the Offset array, leading to an out-of-bounds read when the loop iterates beyond the array bounds.
Impact
A specially crafted DICOM file can cause an out-of-bounds read, potentially leaking heap data and crashing the application.
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 opens a special image file, it trusts a number in the file that says how many parts the image has. If that number is too big, the program reads past the end of a list, which can crash it or leak memory contents. An attacker could use this to see sensitive information from the program's memory.
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.