Vulnerabilities · 2021 · Dompdf Project
CVE-2021-3838
Dompdf Project Dompdf vulnerability
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.
High priority: this vulnerability is rated critical and can be attacked over the network without a login.
Affected products
Dompdf. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Dompdf Project Dompdf runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
More vulnerabilities in Dompdf Project products
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.