Read the docs

mPDF version 7.1.7 and earlier contains a CWE-502: Deserialization of Untrusted Data…

Priority MEDIUM 42CWE-502Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
Required
Attack complexity
Low
Impact type
Code execution
Confidentiality · integrity · availability
High · High · High
Fix status
Fixed

Attack profile from CVSS 3.0 · NVD. Fix status from CNA and GitHub. Impact type from CWE-502.

Summary

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.

Why it matters now

EPSS 0.02101 81st percentileScored 2026-11-07
Public exploit Yes 1 exploit referenceTagged by NVD
Fix Fixed mpdf/mpdf (Packagist): 7.1.8

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
——all versions—No fix listedCNA
—mpdf/mpdf (Packagist)before 7.1.87.1.8Patch availableGHSA-3cwc-m7c2-qr86
  • — Vendor— Affected all versions Fixed in — No fix listed CNA
  • mpdf/mpdf (Packagist) Vendor— Affected before 7.1.8 Fixed in 7.1.8 Patch available GHSA-3cwc-m7c2-qr86

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:mpdf_project:mpdf:*:*:*:*:*:*:*:*up to 7.1.7VulnerableMpdf Project
  • cpe:2.3:a:mpdf_project:mpdf:*:*:*:*:*:*:*:* Versions up to 7.1.7 Vulnerable ·Mpdf Project

Remediation

  • Fix · GHSA-3cwc-m7c2-qr86 mpdf/mpdf (Packagist) Fixed in 7.1.8 Advisory →

Timeline

  1. 2026-10-02 Threatist record created from CVE-2019-1000005
  2. 2026-10-03 Alias added: GHSA-3cwc-m7c2-qr86

References

  • TI-2018-13501 mPDF through 7.1.6, if deployed as a web application that accepts arbitrary HTML, allows… CVSS 3.0CRITICAL 10.0
  • TI-2022-26351 mPDF 7.0 - Local File Inclusion CVSS 4.0HIGH 8.7

Sources