PT-2019-11259 · Mpdf · Mpdf
Byqwert
·
Published
2019-02-04
·
Updated
2022-05-14
·
CVE-2019-1000005
CVSS v3.1
8.8
High
| Vector | AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
Name of the Vulnerable Software and Affected Versions:
mPDF versions 7.1.7 and earlier
Description:
The issue is related to a Deserialization of Untrusted Data vulnerability in the
getImage() method of the Image/ImageProcessor class. This can result in arbitrary code execution, file write, etc. The attack is exploitable if an attacker hosts a crafted image on the victim server and triggers the generation of a PDF file with content <img src="phar://path/to/crafted/image">.Recommendations:
For mPDF versions 7.1.7 and earlier, update to version 7.1.8 to resolve the issue. As a temporary workaround, consider restricting the use of the
getImage() method in the Image/ImageProcessor class until a patch is available. Avoid using the <img src> tag with phar:// protocol in PDF files until the issue is resolved.Exploit
Fix
Deserialization of Untrusted Data
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Mpdf