Accusoft ImageGear GEM Raster Code Execution Vulnerability
An out-of-bounds write vulnerability exists in the GEM Raster parser of Accusoft ImageGear 19.3.0. A specially crafted GEM file can cause an out-of-bounds write, potentially leading to remote code execution.
Originally disclosed on Cisco Talos
An exploitable out-of-bounds write vulnerability exists in the igcore19d.dll GEM Raster parser of the Accusoft ImageGear 19.3.0 library. A specially crafted GEM file can cause an out-of-bounds write, resulting in a remote 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 the loop counter taken from the file is not validated against the destination buffer size, causing memcpy to write beyond the allocated buffer.
Impact
An attacker could cause memory corruption and potentially achieve remote code execution by providing a malformed file to the victim.
What the attacker needed
Victim opens a malicious GEM file
The fix
The vendor patched the vulnerability, likely by validating the loop counter against the destination buffer size.
How it was found
- Craft a GEM file with a large counter value at offset 0x12.
- Load the file using the IG_load_file function.
- The parser enters a loop that copies data into a buffer, writing past its end.
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 memory corruption bug in a library that reads image files. When the library opens a malicious GEM image, it writes data past the end of a buffer, which can crash the program or let an attacker run their own code. The attacker only needs to trick someone into opening the 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.