Grassroot DICOM JPEGBITSCodec::InternalCode out-of-bounds read vulnerability
An out-of-bounds read vulnerability exists in the JPEGBITSCodec::InternalCode functionality of Grassroot DICOM 3.024. A specially crafted DICOM file can lead to an information leak.
Originally disclosed on Cisco Talos
An out-of-bounds read vulnerability exists in the JPEGBITSCodec::InternalCode 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
The code fails to check that the computed row pointer stays within the bounds of the input buffer before passing it to JPEG compression routines.
Impact
A specially crafted DICOM file can trigger an out-of-bounds read, potentially leading to an information leak or crash.
What the attacker needed
Victim opens a 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 processes a malicious DICOM file, it reads memory outside the intended buffer, which can crash the program or leak sensitive data. An attacker could exploit this by tricking a victim into opening a crafted file.
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.