Deserialization of Untrusted Data in mpdf - CVE-2019-1000005

 

Deserialization of Untrusted Data in mpdf - CVE-2019-1000005

Published: February 7, 2019


Vulnerability identifier: #VU17421
CSH Severity: High
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P/U:Amber
CVE-ID: CVE-2019-1000005
CWE-ID: CWE-502
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: mpdf
Affected software:
mpdf

Detailed vulnerability description

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The vulnerability exists in the getImage() method of the Image/ImageProcessor class due to insecure input validation when processing serialized data. A remote attacker can trick the victim into generating a PDF file with the affected application from a malicious image file, trigger a PHP deserialization through the phar:// wrapper and execute arbitrary code on the target system.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.


How to mitigate CVE-2019-1000005

Update to version 7.1.8.

Sources