CVE-2021-3838

published 15 Nov 2024 · updated 18 Nov 2024

PHAR Deserialization in dompdf/dompdf

9.8CriticalCVSS 9.8EPSS 1%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in 2.0.0.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
dompdf<2.0.02.0.0

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2021-3838 severity on Zeptric[![CVE-2021-3838](https://zeptric.io/badge/cve/CVE-2021-3838.svg)](https://zeptric.io/cve/CVE-2021-3838)