ACD Systems Canvas Draw 5 huff table out-of-bounds write code execution vulnerability
A specially crafted tiled TIFF image using Adobe Deflate compression causes an out-of-bounds write while the application builds a Huffman table, because a value taken from the compressed data is used as an index without validation. An attacker could deliver such an image to trigger the write and potentially gain code execution.
Originally disclosed on Cisco Talos
An exploitable out-of-bounds write exists in the TIFF-parsing functionality of Canvas Draw version 5.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 Huffman table builder uses a value taken directly from the compressed TIFF data as an index without validating it, so the write lands outside the table's bounds.
Impact
An attacker could gain code execution by delivering a crafted TIFF image, though the user must open the file for it to be processed.
What the attacker needed
Victim opens a crafted TIFF image
The fix
The vendor patched the issue, so the parsing should validate the Huffman table values taken from the compressed data before using them as indices.
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 TIFF is an image file format, and this program reads such files to open pictures. When it unpacks a compressed image, it uses numbers from the file to decide where to store data, but it never checks those numbers are sensible. A rigged image can therefore make the program write outside its intended memory area, 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.