CVE-2019-6731 Memory corruption in PhantomPDF

High 8.8 Published Updated

Remote attackers can execute arbitrary code by tricking users into opening malicious HTML files in Foxit PhantomPDF due to an out-of-bounds read.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2019-6731?

CVE-2019-6731 is a high-severity memory corruption vulnerability in Foxitsoftware Phantompdf, published on 19 Mar 2019. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

This vulnerability allows remote attackers to execute arbitrary code on vulnerable 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 HTML files to PDF. The issue results from the lack of proper validation of user-supplied data, which can result in a read past the end of an allocated object. An attacker can leverage this vulnerability to execute code in the context of the current process. Was ZDI-CAN-7369.

Weakness: CWE-125

Which versions are affected by CVE-2019-6731?

It affects 2 products.

Products include Foxitsoftware Phantompdf, Foxitsoftware Reader.

How do I fix CVE-2019-6731?

No fix has been published for CVE-2019-6731 yet. Limit exposure of the affected software until one is available.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2019-6731 being exploited?

There is no known exploitation of CVE-2019-6731 in the wild and no public exploit code.

All Foxitsoftware Phantompdf vulnerabilities

Sources

Also known as GHSA-wh49-fmfv-4c8x.

Is CVE-2019-6731 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free