GHSA-3cwc-m7c2-qr86
Dashboard / Vulnerabilities / GHSA-3cwc-m7c2-qr86
Summary: mPDF Unsafe Deserialization
Details: mPDF version 7.1.7 and earlier contains a CWE-502: Deserialization of Untrusted Data vulnerability in getImage() method of Image/ImageProcessor class that can result in Arbitry code execution, file write, etc.. This attack appears to be exploitable via attacker must host crafted image on victim server and trigger generation of pdf file with content `<img src="phar://path/to/crafted/image">`. This vulnerability appears to have been fixed in 7.1.8.
References: https://nvd.nist.gov/vuln/detail/CVE-2019-1000005, https://github.com/mpdf/mpdf/issues/949, https://github.com/mpdf/mpdf
Affected packages
Package
Name: mpdf/mpdf
Purl: pkg:composer/mpdf/mpdf
Affected ranges
Type: ECOSYSTEM
Events:
Introduced- 0
Fixed -7.1.8
Affected versions
7.0.2
Common Vulnerability Scoring System
Attack Vector
Network
Adjacent
Local
Physical
Privileges Required
None
Low
High
User Interaction
None
Required
Scope
Unchanged
Changed
Confidentiality
None
Low
High
Integrity
None
Low
High
Availability
None
Low
High
