Skip to content
Memory corruption Advisory Advanced CVE-2016-9043

Corel CorelDRAW X8 EMF Parser Code Execution Vulnerability

An out-of-bounds write exists in CorelDRAW X8's EMF parser when processing certain records, allowing an attacker to control the write destination. A crafted EMF file could lead to code execution.

Piotr Bania Follow

Originally disclosed on Cisco Talos

High 8.8 View original

An out of bound write vulnerability exists in the EMF parsing functionality of CorelDRAW X8 (CdrGfx - Corel Graphics Engine (64-Bit) - 18.1.0.661). A specially crafted EMF file can cause a vulnerability resulting in potential code execution.

Piotr Bania, 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 parser fails to validate the brush index (ihBrush) from the EMF record, using it directly as an array index without bounds checking.

Impact

An attacker could potentially execute arbitrary code in the context of the user.

What the attacker needed

Victim opens a malicious EMF file

How it was found

  1. Create a specially crafted EMF file with a malicious EMR_CREATEBRUSHINDIRECT record.
  2. Send the file to the victim.
  3. The victim opens the file in CorelDRAW X8, triggering the 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 EMF file is a Windows image format. The program that reads it has a bug: it writes data to a memory address that the attacker can choose by changing a number in the file. This can crash the program 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.

More by Piotr Bania

View all

94 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.