ACD Systems Canvas Draw 4 Invert Map Out-of-Bounds Write Code Execution Vulnerability
A specially crafted PCX image with incorrect column and row values causes an out-of-bounds write in Canvas Draw 4.0.0, allowing an attacker to overwrite arbitrary data and potentially gain code execution.
Originally disclosed on Cisco Talos
An exploitable out-of-bounds write exists in the PCX parsing functionality of Canvas Draw version 4.0.0. A specially crafted PCX 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 application does not validate that the calculated column and row sizes are positive before using them to access the image map, leading to a negative index and out-of-bounds write.
Impact
An attacker could deliver a malicious PCX image to trigger the out-of-bounds write and potentially gain code execution.
What the attacker needed
Victim opens a crafted PCX image
How it was found
- Craft a PCX image with a left value larger than the right value, producing a negative column count.
- Open the crafted PCX image in Canvas Draw 4.0.0.
- The application parses the header and calculates a negative column size.
- The negative size is used in the invert_map function, causing an out-of-bounds write.
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 out-of-bounds write happens when a program writes data past the end of a memory buffer, corrupting other memory. Here, a malformed image file tricks the program into calculating a negative size, so it writes to the wrong place. An attacker could use this to run their own code on the victim's computer.
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.