Canva Affinity EMF File EMR_POLYBEZIERTO Count Out-Of-Bounds Read Vulnerability
An out-of-bounds read vulnerability exists in Canva Affinity's EMF file processing when the Count field in an EMR_POLYBEZIERTO record is larger than the record size allows. An attacker could exploit this to read arbitrary memory within the process, potentially disclosing sensitive information.
An out-of-bounds read vulnerability exists in the EMF functionality of Canva Affinity. By using a specially crafted EMF file, an attacker could exploit this vulnerability to perform an out-of-bounds read, potentially leading to the disclosure of sensitive information.
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 program does not validate that the Count field in an EMR_POLYBEZIERTO record is consistent with the record size before using it to iterate over the aPoints array.
Impact
Exploiting this vulnerability allows for the reading of arbitrary memory within the process, potentially disclosing sensitive information.
What the attacker needed
Victim opens a crafted EMF file
The fix
The vendor released a patch on 2026-03-17.
How it was found
- Craft an EMF file with an EMR_POLYBEZIERTO record where the Count field is excessively large.
- Open the crafted EMF file in Canva Affinity.
- The program reads beyond the allocated buffer, causing an out-of-bounds read and potentially a crash.
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.
This bug is in a graphics program that opens EMF files, a common Windows image format. When the program reads a list of points from the file, it trusts a number in the file that says how many points there are, but doesn't check if that number fits within the file's data. By making that number too big, an attacker can make the program read past the end of the file data into other memory, which might contain secrets.
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.