DomPDF Vulnerability Allows for Remote Code Execution
CVE-2021-3838

9.8CRITICAL

Key Information:

Vendor

DomPDF

Vendor
CVE Published:
15 November 2024

What is CVE-2021-3838?

DomPDF versions prior to 2.0.0 exhibit a vulnerability allowing PHAR deserialization due to insufficient validation of the protocol in use before inputting it into the file_get_contents() function. This weakness enables attackers with the ability to upload files of any type to leverage the phar:// protocol, leading to the unserialization of uploaded files and the potential instantiation of arbitrary PHP objects. Such capabilities significantly elevate the risk of remote code execution, particularly when utilized alongside frameworks containing known PHP Object Injection (POP) chains, such as Laravel, or when they are integrated with poorly secured developer code. Organizations utilizing DomPDF should apply necessary security patches and adhere to best practices to mitigate this vulnerability.

Affected Version(s)

dompdf/dompdf < 2.0.0

References

EPSS Score

5% chance of being exploited in the next 30 days.

CVSS V3.1

Score:
9.8
Severity:
CRITICAL
Confidentiality:
High
Integrity:
High
Availability:
High
Attack Vector:
Network
Attack Complexity:
Low
Privileges Required:
None
User Interaction:
None
Scope:
Unchanged

Timeline

  • Vulnerability published

  • Vulnerability Reserved

.
CVE-2021-3838 : DomPDF Vulnerability Allows for Remote Code Execution