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

PDF-XChange Editor EMF File EMR_EXTCREATEFONTINDIRECTW Facename Out-Of-Bounds Read Vulnerability

PDF-XChange Editor fails to validate the length of the Facename field in EMR_EXTCREATEFONTINDIRECTW records, relying only on a NULL terminator. An attacker could craft an EMF file without a NULL terminator to cause an out-of-bounds read, potentially disclosing sensitive memory.

KPC Follow

Originally disclosed on Cisco Talos

Medium 6.5 View original

An out-of-bounds read vulnerability exists in the EMF functionality of PDF-XChange Co. Ltd PDF-XChange Editor 10.6.0.396.

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 does not validate the length of the Facename field and relies solely on a NULL terminator to determine its length, causing an out-of-bounds read when no terminator is present.

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 vendor released a patch on 2025-07-22.

How it was found

  1. Craft an EMF file with an EMR_EXTCREATEFONTINDIRECTW record whose Facename field lacks a NULL terminator.
  2. Open the crafted EMF file in PDF-XChange Editor to trigger parsing of the Facename field.
  3. The parser loops through the Facename field looking for a NULL terminator, reading beyond the buffer.
  4. The out-of-bounds read continues until an unmapped memory page is reached, 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.

A PDF editor can also open EMF image files. When it reads a font name from such a file, it keeps reading until it finds a special zero byte that marks the end. If that zero byte is missing, the program reads past the end of the data, which can crash it or leak memory contents.

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.