Skip to content
Memory corruption Advisory Advanced CVE-2025-61952

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

An out-of-bounds read exists in Canva Affinity's handling of EMF files, specifically the EMR_POLYBEZIER record, where the Count field is not checked against the record size. An attacker could craft a malicious EMF file to read memory beyond the intended buffer, potentially disclosing 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 loader trusts the Count field in an EMR_POLYBEZIER record and loops over that many points without verifying that the declared array fits within the record's stated size.

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 vendor released a patch on 2026-03-17, though the text does not describe the code change itself.

How it was found

  1. Open a crafted EMF file in Canva Affinity so the EMR_POLYBEZIER record is parsed.
  2. The loader checks that Count is non-zero and takes the address of the aPoints array.
  3. A loop runs Count times, reading point coordinates from the array.
  4. Because Count is larger than the record can hold, the loop reads past the buffer and eventually faults.

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. When the program opens one, it reads a list of points for drawing curves, and it trusts a number in the file that says how many points there are. If that number is too big, the program keeps reading past the end of the data it loaded, which can leak whatever happens to be in memory next to it.

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.

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.

Memory corruption

The lesson behind this report.

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.