CVE-2021-3838
CRITICAL EPSS 69.7%
Published Nov 15, 20241y ago · Modified Jun 17, 20262w ago
9.8 CVSS 3.1
Published Nov 15, 2024 1y ago
Last Modified Jun 17, 2026 2w ago
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.
CVSS Details
Base Score
Exploitability
Impact
Vector string
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H Attack Vector Network
Attack Complexity Low
Privileges Required None
User Interaction None
Scope Unchanged
Confidentiality High
Integrity High
Availability High
Threat Intelligence
EPSS Exploit Probability
69.7% percentile
Exploit & Patch Status
Public Exploit Known
Patch Available
Weaknesses 1
CWE-502 Deserialization of Untrusted Data Validation
Affected Products 1
| Vendor | Product | Version | Range |
|---|---|---|---|
| dompdf_project | dompdf | * | <2.0.0 |
References 2
- github.com https://github.com/dompdf/dompdf/commit/99aeec1efec9213e87098d42eb09439e7ee0bb6a
- huntr.com https://huntr.com/bounties/0bdddc12-ff67-4815-ab9f-6011a974f48e
Remediation
- github.com https://github.com/dompdf/dompdf/commit/99aeec1efec9213e87098d42eb09439e7ee0bb6a
- huntr.com https://huntr.com/bounties/0bdddc12-ff67-4815-ab9f-6011a974f48e