ACD Systems Canvas Draw 4 setRasterData Heap Overflow Code Execution Vulnerability
A heap overflow exists in Canvas Draw 4 when parsing a compressed and tiled TIFF image, caused by an unchecked size calculation leading to an out-of-bounds write. An attacker could deliver a crafted TIFF to trigger the overflow and potentially gain code execution.
Originally disclosed on Cisco Talos
An exploitable heap overflow exists in the TIFF parsing functionality of Canvas Draw version 4.0.0. A specially crafted TIFF image processed via the application can lead to an out-of-bounds write, overwriting arbitrary data.
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 size for a memory copy is calculated from user-controlled TIFF data without proper validation, leading to an out-of-bounds write.
Impact
An attacker could overwrite arbitrary memory and potentially gain code execution.
What the attacker needed
Victim opens a crafted TIFF file
The fix
The vendor confirmed a fix was scheduled for the next update.
How it was found
- Craft a TIFF image with CCITT Group 3 compression and tiling.
- Open the TIFF image in Canvas Draw 4.
- The application parses the TIFF and triggers the heap overflow during decompression.
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.
A heap overflow is a memory corruption bug where a program writes more data than a buffer can hold, overwriting nearby memory. In this case, opening a malicious TIFF image causes the program to write past a buffer, which can crash it 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.