Accusoft ImageGear ioca_mys_rgb_allocate memory corruption vulnerability
A memory corruption vulnerability exists in the ioca_mys_rgb_allocate functionality of Accusoft ImageGear 19.10. A specially-crafted malformed file can lead to an arbitrary free, allowing an attacker to potentially execute arbitrary code.
Originally disclosed on Cisco Talos
A memory corruption vulnerability exists in the iocamysrgballocate functionality of Accusoft ImageGear 19.10. A specially-crafted malformed file can lead to an arbitrary free.
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 code allocates a zero-sized buffer when the image height is zero, then later frees an uninitialized pointer from that buffer.
Impact
An attacker could exploit this to cause a denial of service or potentially execute arbitrary code.
What the attacker needed
Victim opens a malformed IOCA file
The fix
The vendor patched the vulnerability in version 20.0.
How it was found
- Craft a malformed IOCA file with a zero height value.
- Load the file using the ImageGear library.
- The library allocates a zero-sized buffer and does not initialize the table.
- During processing, the library attempts to free an uninitialized pointer, causing a crash.
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 an image processing library. When the library opens a specially crafted image file, it can be tricked into freeing a memory address that it does not own. This can crash the program or, in the worst case, 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.