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

ACD Systems Canvas Draw 5 IO metadata out-of-bounds write code execution vulnerability

A specially crafted CALS Raster image file causes an out-of-bounds write in Canvas Draw 5 when the application parses the image's column and row size values from the file header. An attacker could deliver such a file to a victim and potentially gain code execution.

Tyler Bohan Follow

Originally disclosed on Cisco Talos

High 8.8 View original

An exploitable out-of-bounds write exists in the CALS Raster file format-parsing functionality of Canvas Draw version 5.0.0.28. A specially crafted CAL 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

The parser uses column and row size values from the CALS header to compute where to write image data without validating them, so incorrect values cause writes outside the allocated buffer.

Impact

An attacker who gets a victim to open a crafted CAL image could overwrite arbitrary memory and potentially achieve code execution, though the text only demonstrates a crash.

What the attacker needed

Victim opens a crafted CAL image

The fix

The vendor patched the issue, presumably by validating the header size values before using them to write image data.

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.

An image file has a small header that tells the program how big the picture is. This program trusted those size numbers without checking them, so it wrote data past the end of its memory buffer. A malicious image could therefore corrupt memory in a way that lets 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.