Skip to content
Memory corruption Advisory Advanced CVE-2018-3859

ACD Systems Canvas Draw 4 Huff Table Out-of-bounds Write Code Execution Vulnerability

A specially crafted tiled TIFF image using Adobe Deflate compression causes Canvas Draw to build a Huffman table from unvalidated data, leading to an out-of-bounds write. An attacker could deliver such an image to overwrite arbitrary memory and potentially execute code.

Tyler Bohan Follow

Originally disclosed on Cisco Talos

High 8.8 View original

An exploitable out-of-bounds write 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.

Tyler Bohan, on Cisco Talos

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 values taken directly from the compressed TIFF data as array indices without validating them against the table bounds.

Impact

An attacker could overwrite arbitrary data and potentially achieve code execution, though the user must open a crafted image.

What the attacker needed

Victim opens a crafted TIFF image; tiled TIFF with Adobe Deflate compression

The fix

The vendor confirmed a fix was scheduled for the next update, but the text does not describe the fix itself.

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. When the program opens a malicious image, it trusts numbers inside the file to decide where to store data in memory, and those numbers can point outside the intended area. Writing outside that area can corrupt the program and 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.

More by Tyler Bohan

View all

84 more disclosed reports, best first.

More from Cisco Talos

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Memory corruption

The lesson behind this report.

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.