Advisory

GHSA-3cwc-m7c2-qr86

Also known as: CVE-2019-1000005

Summary

mPDF Unsafe Deserialization

Details

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2022-05-14 01:33 UTC
Modified
2024-02-16 08:24 UTC

Affected packages and fixes

mpdf/mpdf

Packagist · All systems

Affected

  • introduced 0, fixed 7.1.8 (ecosystem)

Fixed versions

7.1.8

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences