All reports
Critical

UBUNTU-CVE-2021-3838

Affected versions

Affected versions
<0.6.2+dfsg-3ubuntu0.20.04.1 || =0.6.2+dfsg-3
Fixed version
0.6.2+dfsg-3ubuntu0.20.04.1
Affected versions
<0.6.2+dfsg-3.1ubuntu0.1 || =0.6.2+dfsg-3.1
Fixed version
0.6.2+dfsg-3.1ubuntu0.1
Affected versions
<0.6.1+dfsg-2ubuntu1+esm1 || =0.6.1+dfsg-2 || =0.6.1+dfsg-2build1 || =0.6.1+dfsg-2ubuntu1
Fixed version
0.6.1+dfsg-2ubuntu1+esm1
Affected versions
<0.6.2+dfsg-3ubuntu0.18.04.1~esm1 || =0.6.2+dfsg-3
Fixed version
0.6.2+dfsg-3ubuntu0.18.04.1~esm1

Description

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.

Links