Canva Affinity EMF File EMR_POLYBEZIER16 Count Out-Of-Bounds Read Vulnerability
The EMF loader in Canva Affinity trusts the Count field of an EMR_POLYBEZIER16 record without checking it against the record size, so a crafted file makes the parser read past the end of the record. An attacker could use this to read memory from 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 parser does not validate that the Count field of an EMR_POLYBEZIER16 record fits within the record's declared size before looping over the points array.
Impact
Exploiting this could allow reading of arbitrary memory within the process, potentially disclosing sensitive information; the report shows only a crash, not a working leak.
What the attacker needed
Victim opens a crafted EMF file; local user interaction
The fix
The vendor released a patch on 2026-03-17.
How it was found
- Open a crafted EMF file in the affected application.
- The loader reads the EMR_POLYBEZIER16 record and takes the Count value.
- It confirms Count is non-zero and points to the start of the aPoints array.
- It loops Count times reading point values, running past the record's end.
- The process crashes with an access violation on the out-of-bounds read.
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 list of drawing instructions, and each instruction says how big it is and how many points it holds. The program believed the point count instead of checking it against the space actually available, so it kept reading past the end of the data. That lets a malicious file pull in whatever happens to sit next to it in memory.
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.