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.
An out-of-bounds read vulnerability exists in the EMF functionality of PDF-XChange Co. Ltd PDF-XChange Editor 10.7.3.401.
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
- Open a crafted EMF file in PDF-XChange Editor so that it is converted to PDF.
- The EMR_SMALLTEXTOUT record is parsed and its fuOptions flag is checked.
- Because the flag indicates Bounds is present, the code copies the Bounds field from beyond the end of the record.
- 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.