Canva Affinity EMF File EMR_POLYBEZIERTO16 Count Out-Of-Bounds Read Vulnerability
The EMF loader in Canva Affinity does not check that the Count field of an EMR_POLYBEZIERTO16 record fits within the record's declared size, so a crafted EMF file makes it read past the end of the point array. An attacker could use this to read memory from the process and potentially disclose 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 loader uses the Count field to drive a loop over the aPoints array without verifying that 0x1C + (4 * N) stays within recordSize.
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; local user interaction
The fix
The loader should validate that the Count field and the resulting aPoints array fit within recordSize before iterating; the vendor released a patch on 2026-03-17.
How it was found
- Open a crafted EMF file in Canva Affinity so the EMF loader parses it.
- The loader reads the EMR_POLYBEZIERTO16 record and checks that Count is non-zero.
- It takes the address of the aPoints array and starts a loop that runs Count times.
- Because Count is far larger than the record allows, the loop reads past the buffer and eventually hits unmapped memory.
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.
EMF is a file format for storing pictures, and inside it are records that describe shapes. One record type lists points for a curve and says how many points there are; the program trusted that number without checking it against the actual space in the file. A malicious file can therefore make the program read memory beyond the data it was given, which may leak information.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.