ADVISORIES

Ubuntu CVE Tracker

UBUNTU-CVE-2021-3838

Details

DomPDF before version 2.0.0 is vulnerable to PHAR deserialization due to a lack of checking on the protocol before passing it into the file_get_contents() function. An attacker who can upload files of any type to the server can pass in the phar:// protocol to unserialize the uploaded file and instantiate arbitrary PHP objects. This can lead to remote code execution, especially when DOMPdf is used with frameworks with documented POP chains like Laravel or vulnerable developer code.

Affected packages

EcosystemPackageAffected versions
Ubuntu:Pro:16.04:LTSphp-dompdf
All versions before 0.6.1+dfsg-2ubuntu1+esm1 (fixed in 0.6.1+dfsg-2ubuntu1+esm1)
Ubuntu:Pro:18.04:LTSphp-dompdf
All versions before 0.6.2+dfsg-3ubuntu0.18.04.1~esm1 (fixed in 0.6.2+dfsg-3ubuntu0.18.04.1~esm1)
Ubuntu:20.04:LTSphp-dompdf
All versions before 0.6.2+dfsg-3ubuntu0.20.04.1 (fixed in 0.6.2+dfsg-3ubuntu0.20.04.1)
Ubuntu:22.04:LTSphp-dompdf
All versions before 0.6.2+dfsg-3.1ubuntu0.1 (fixed in 0.6.2+dfsg-3.1ubuntu0.1)

References