Vulnerability

CVE-2021-3838

criticalCVSS 3.1 9.8Published 15 Nov 2024

A plain-language summary of this CVE is being written; the description below is the NVD's own text.

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.

Affected products

From the NVD's configuration data (CPE), vendor first.

  • Dompdf Project dompdf

Weakness type

References

  • github.com /dompdf/dompdf/commit/99aeec1efec9213e87098d42eb09439e7ee0b…
  • huntr.com /bounties/0bdddc12-ff67-4815-ab9f-6011a974f48e

Ingati scans your site every week and tells you when a CVE like this one affects something it found there.

Start scanning