Foxit PhantomPDF Dwg2Pdf DXF File Parsing Stack-based Buffer Overflow Remote Code Execution Vulnerability
Vulnerability Details
This vulnerability allows remote attackers to execute arbitrary code on affected installations of Foxit PhantomPDF. User interaction is required to exploit this vulnerability in that the target must visit a malicious page or open a malicious file.
The specific flaw exists within the conversion of DXF files to PDF. The issue results from the lack of proper validation of the length of user-supplied data prior to copying it to a fixed-length stack-based buffer. An attacker can leverage this vulnerability to execute code in the context of the current process.
Additional Details
The plugin Dwg2Pdf is End of Life and will not be included in Foxit Reader version 9.7 and higher.
Disclosure Timeline
- 2019-08-13 - Vulnerability reported to vendor
- 2019-10-22 - Coordinated public release of advisory
- 2019-11-01 - Advisory Updated
Credit
Mat Powell of Trend Micro Zero Day Initiative