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

Canva Affinity EMF File EMR_STRETCHBLT offBmiSrc Out-Of-Bounds Read Vulnerability

An out-of-bounds read exists in Canva Affinity's handling of EMF files: the offBmiSrc offset in an EMR_STRETCHBLT record is not validated against the record size, so a crafted file makes the loader read from unallocated memory. An attacker could use this to read arbitrary process memory 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 loader used the attacker-controlled offBmiSrc offset to compute a pointer to the source bitmap header without checking that it fell within the record's bounds.

Impact

Exploiting this could allow reading of arbitrary memory within the process, potentially disclosing sensitive information; the CVSS vector rates confidentiality as high and availability as low, and the crash was observed with pageheap enabled.

What the attacker needed

Victim opens a crafted EMF file; local access to the application

The fix

The vendor released a patch on 2026-03-17, and the offset should be validated against the record size before the bitmap header is accessed.

How it was found

  1. Open a crafted EMF file in Canva Affinity, which parses the EMR_STRETCHBLT record.
  2. The loader reads the offBmiSrc field from the record.
  3. It adds offBmiSrc to the record pointer to locate the source bitmap header.
  4. Because offBmiSrc is arbitrarily large, the computed address lies in unallocated memory.
  5. A later access to that address causes an out-of-bounds read and a crash.

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 records that tell the program how to draw things. One record points to a bitmap header using an offset, which is a distance from the start of the record. The program trusted that offset without checking it stayed inside the file, so it read memory beyond the file's data, which can leak whatever happens to be there.

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.