OFFIS DCMTK DVPSSoftcopyVOI_PList::createFromImage incorrect type conversion vulnerability
A malformed DICOM file can cause an incorrect type cast in DVPSSoftcopyVOI_PList::createFromImage, leading to a crash and potentially arbitrary code execution. An attacker can provide a malicious file to trigger this vulnerability.
Originally disclosed on Cisco Talos
An incorrect type conversion vulnerability exists in the DVPSSoftcopyVOIPList::createFromImage functionality of OFFIS DCMTK 3.6.8. A specially crafted malformed file can lead to arbitrary code execution.
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 casts the result of a dataset search to DcmSequenceOfItems without verifying the actual object type, so a different type (e.g., DcmByteString) is treated as a sequence, causing an invalid vtable call.
Impact
A crafted DICOM file could crash the application and potentially allow arbitrary code execution, though the CVSS vector indicates only availability impact.
What the attacker needed
Malicious DICOM file; victim opens the file
The fix
The vendor has provided an update in their Git repository.
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 imaging library where a file is read and a piece of data is assumed to be one type when it is actually another. When the program tries to use it, it crashes and could let an attacker run their own code. The attacker only needs to supply a specially 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.