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 package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| mpdf/mpdf (Packagist) | before 7.1.8 | GitHub Advisory Database |
| mpdf_project mpdf | up to 7.1.7 | NVD |
All scores
| GitHub | 8.8high CVSS:3.0 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVD | 8.8high CVSS:3.0 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVD | 6.8medium CVSS:2.0 | AV: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
| 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
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2019-1000005 changed 2024-08-05 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-3cwc-m7c2-qr86 changed 2024-02-16 | CC-BY-4.0 |
| NVD | CVE-2019-1000005 changed 2026-06-17 | Public domain |