Canva Affinity EMF File EMR_EXTTEXTOUTA offDx Out-Of-Bounds Read Vulnerability
An out-of-bounds read exists in Canva Affinity's handling of EMF files, specifically in the EMR_EXTTEXTOUTA record where the offDx offset is not validated against the record size. An attacker could craft a malicious EMF file to read memory beyond the record, 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 loader uses the offDx field as an offset into the record without checking that offDx plus the spacing array size 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; affected Canva Affinity version
The fix
The vendor released a patch on 2026-03-17, though the text does not describe the code change.
How it was found
- Craft an EMF file containing an EMR_EXTTEXTOUTA record whose offDx value points beyond the record size.
- Open the crafted EMF file in the affected Canva Affinity version.
- Observe the out-of-bounds read when the intercharacter spacing array is accessed, causing an access violation under pageheap.
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 images, and programs that open these files must read structured records from them. Here the program trusted a number in the file that says where a spacing table sits, without checking it stays inside the record, so it read past the end of the data. That can leak 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.