Live threats

All CVEs / Mpdf Project

CVE-2019-1000005Mpdf Project Mpdf

High 8.8 No auth needed

Priority
68
CVSS 3.0
8.8
EPSS
2.1%
probability of exploitation in 30 days · percentile 82
Auth required
No
Published
Feb 4, 2019
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-502
Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Mpdf.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Packagist mpdf/mpdf < 7.1.8 7.1.8 composer require "mpdf/mpdf:^7.1.8"

Per OSV / GitHub Advisories (GHSA-3cwc-m7c2-qr86). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
mpdf_projectmpdf≤ 7.1.7

Official sources

References

Links published by the sources. Open them with care.

  • github.com Exploit Issue Tracking Third Party Advisory