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.
Originally disclosed on Cisco Talos
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.
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
- Create a specially crafted EMF file with a malicious EMR_CREATEBRUSHINDIRECT record.
- Send the file to the victim.
- 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.