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

PDF-XChange Editor EMF File EMR_SMALLTEXTOUT Out-Of-Bounds Read Vulnerability

A specially crafted EMF file with an undersized EMR_SMALLTEXTOUT record causes PDF-XChange Editor to read past the end of the record when copying the optional Bounds field. An attacker could use this to read memory beyond the buffer, potentially disclosing sensitive information.

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.7.3.401.

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 checks the fuOptions flag to decide whether the Bounds field is present but does not verify that the record is large enough to actually contain it before copying.

Impact

An attacker could read memory beyond the record, potentially disclosing sensitive information; the report shows only a crash under pageheap, not a demonstrated leak.

What the attacker needed

Victim opens a crafted EMF file; user interaction required

The fix

The parser should validate that the record is large enough to hold the Bounds field before copying it; the timeline shows a vendor patch was released.

How it was found

  1. Open a crafted EMF file in PDF-XChange Editor so that it is converted to PDF.
  2. The EMR_SMALLTEXTOUT record is parsed and its fuOptions flag is checked.
  3. Because the flag indicates Bounds is present, the code copies the Bounds field from beyond the end of the record.
  4. The copy reads unmapped memory and the process crashes with 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.

EMF is a Windows file format for storing pictures, and it is made of records that each describe a drawing instruction. One record type, which draws text, can optionally include a rectangle describing where the text sits. The program trusted a size field and copied that rectangle even when the file was too short to contain it, so it read memory past the end of the data. That can leak whatever happens to sit next to the buffer.

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.