# CVE-2019-1000005: mPDF Unsafe Deserialization

- Severity: High 8.8 (CVSS:3.0, scored by NVD) `CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.10%, higher than 82% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2019-02-04T21:00:00.000Z
- Modified: 2026-06-17T02:09:24.043Z
- Also known as: GHSA-3cwc-m7c2-qr86
- Weaknesses: CWE-502
- Assigned by: mitre

## Description

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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- mpdf/mpdf (Packagist): before 7.1.8
- mpdf_project mpdf: up to 7.1.7

## Every score

- GitHub: CVSS:3.0 8.8 High `CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.0 8.8 High `CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 6.8 Medium `AV:N/AC:M/Au:N/C:P/I:P/A:P`

## References

- <https://github.com/mpdf/mpdf/issues/949> (exploit, issue-tracking, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2019-1000005> (advisory)
- <https://github.com/mpdf/mpdf> (package)

## Sources

- CVE List: [CVE-2019-1000005](https://www.cve.org/CVERecord?id=CVE-2019-1000005), CVE Terms of Use, modified 2024-08-05
- GitHub Advisory Database: [GHSA-3cwc-m7c2-qr86](https://github.com/advisories/GHSA-3cwc-m7c2-qr86), CC-BY-4.0, modified 2024-02-16
- NVD: [CVE-2019-1000005](https://nvd.nist.gov/vuln/detail/CVE-2019-1000005), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2019-1000005 · Whole record: https://cve.day/CVE-2019-1000005.json · Rebuilt by cve.day 2026-11-25T22:57:43.723Z
