Skip to content
Info disclosure Advisory Advanced CVE-2025-66000

Canva Affinity EMF File EMR_POLYDRAW Count Out-Of-Bounds Read Vulnerability

The EMF file parser in Canva Affinity does not validate the Count field of an EMR_POLYDRAW record against the record size, so a crafted EMF file makes the program read past the end of the record. An attacker could use this to read arbitrary memory in the process and potentially disclose sensitive information.

KPC Follow

Originally disclosed on Cisco Talos

Medium 6.1 View original

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.

KPC, on Cisco Talos

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 Count field of the EMR_POLYDRAW record is used to compute the address of the abTypes array without being checked against recordSize, so an oversized Count points outside the record.

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 access to the application

The fix

The Count field should be validated against recordSize before the aPoints and abTypes arrays are accessed; the vendor released a patch.

How it was found

  1. Open a specially crafted EMF file in Canva Affinity.
  2. The EMR_POLYDRAW record is parsed and its Count value is read.
  3. Count is added to the pointer to locate the abTypes array, landing outside the record.
  4. The program reads a byte from that invalid address, causing an access violation.

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 small records that describe lines and shapes. One record type says how many points a drawing has, and the program trusts that number without checking it fits inside the file. If the number is too big, the program reads memory beyond the record, which can leak data it should not show.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

More by KPC

View all

102 more disclosed reports, best first.

More from Cisco Talos

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.