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

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

A crafted EMF metafile can declare a point count in an EMR_POLYPOLYLINE16 record that is larger than the record actually contains, so the parser reads past the end of the buffer. 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 parser does not verify that the declared Count and NumberOfPolylines fit within recordSize before iterating over the aPoints array.

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 parser should validate that the declared counts fit within recordSize before reading the point array; the vendor released a patch on 2026-03-17.

How it was found

  1. Open a specially crafted EMF file in Canva Affinity.
  2. The EMF loader parses the EMR_POLYPOLYLINE16 record and computes the aPoints address from NumberOfPolylines.
  3. It loops Count times reading PointS objects, and because Count is too large it reads beyond the buffer until an access violation occurs.

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 it is made of records that describe lines and shapes. One record type lists points for connected lines and states how many points follow; the program trusted that number without checking it against the real size of the record. Because of that, it kept reading past the end of the data it had loaded, which can pull unrelated memory contents into what the program processes.

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.