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

Canva Affinity EMF File EMR_EXTTEXTOUTW offDx Out-Of-Bounds Read Vulnerability

An out-of-bounds read vulnerability exists in Canva Affinity's processing of EMF files, specifically in the EMR_EXTTEXTOUTW record when the offDx field exceeds the record size. An attacker could exploit this to read arbitrary memory within the process, 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 application fails to validate that the offDx field in an EMR_EXTTEXTOUTW record is within the bounds of the record before using it to access the intercharacter spacing 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

The fix

The vulnerability was fixed in version 3.0.1.3808 according to the vendor patch release.

How it was found

  1. Craft an EMF file containing an EMR_EXTTEXTOUTW record with offDx set to a value greater than recordSize.
  2. Open the crafted EMF file in Canva Affinity.
  3. The application reads the offDx field and uses it as an offset to access the intercharacter spacing array, causing an out-of-bounds read.

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 Canva Affinity opens an EMF file, it reads a text record that includes an offset value telling it where to find spacing data. If that offset is larger than the record itself, the program reads memory beyond the intended area, which could leak data from other parts of 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.

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.