CVE-2019-1000005
JSON

8.8high

mPDF Unsafe Deserialization

Severity
8.8high CVSS:3.0 by NVD
Exploit likelihood
2.10% (higher than 82% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
mitre
Also known as
GHSA-3cwc-m7c2-qr86

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.

Affected

Product or packageVersionsReported by
Unspecified productn/aCVE List
mpdf/mpdf (Packagist)before 7.1.8GitHub Advisory Database
mpdf_project mpdfup to 7.1.7NVD

All scores

GitHub8.8high CVSS:3.0CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
NVD8.8high CVSS:3.0CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
NVD6.8medium CVSS:2.0AV:N/AC:M/Au:N/C:P/I:P/A:P

Classification

What each source says

CVE List

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.

GitHub Advisory Database

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.

NVD (es)

mPDF, en versiones 7.1.7 y anteriores, contiene una vulnerabilidad CWE-502: deserialización de datos no fiables en el método getImage() de la clase Image/ImageProcessor que puede resultar en la ejecución de código arbitrario, la escritura en archivos, etc. Este ataque parece ser explotable si un atacante aloja una imagen manipulada en el servidor de la víctima y desencadena la generación de un archivo PDF con contenido <img src="phar://path/to/crafted/image">. La vulnerabilidad parece haber sido solucionada en la versión 7.1.8.

References

Sources

SourceRecordLicence
CVE ListCVE-2019-1000005 changed 2024-08-05CVE Terms of Use
GitHub Advisory DatabaseGHSA-3cwc-m7c2-qr86 changed 2024-02-16CC-BY-4.0
NVDCVE-2019-1000005 changed 2026-06-17Public domain