Vulnerability identifier: #VU17421
Vulnerability risk: High
CVSSv4.0: 7.3 [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:
CWE-ID:
CWE-502
Exploitation vector: Network
Exploit availability: No
Vulnerable software:
mpdf
Universal components / Libraries /
Libraries used by multiple products
Vendor: mpdf
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.
Mitigation
Update to version 7.1.8.
Vulnerable software versions
mpdf: 5.4.0 - 7.1.7
External links
https://github.com/mpdf/mpdf/issues/949
Can this vulnerability be exploited remotely?
Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.
Is there known malware, which exploits this vulnerability?
No. We are not aware of malware exploiting this vulnerability. However, proof of concept for this vulnerability is available.