Accusoft ImageGear dcm_pixel_data_decode out-of-bounds write vulnerability
A malformed DICOM file can cause an integer underflow in the dcm_pixel_data_decode function of Accusoft ImageGear 20.1, leading to an out-of-bounds write on the stack. An attacker could exploit this to overwrite stack memory and potentially achieve arbitrary code execution.
Originally disclosed on Cisco Talos
An out-of-bounds write vulnerability exists in the dcmpixeldatadecode functionality of Accusoft ImageGear 20.1. 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
Likely an integer underflow: a constant (0xf) is subtracted by a file-controlled value without validation, producing a large index used to write to the stack.
What the attacker needed
Victim opens a malicious file; ImageGear 20.1 is used
The fix
The vendor released a patch in version 20.3, as indicated by the release notes.
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 library that reads image files. When a specially crafted file is opened, a number used for memory allocation becomes huge due to a subtraction mistake, causing the program to write data outside the intended memory area. This can crash the program or let an attacker run their own code.
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.