CVE-2021-3838
Last modified
CVE-2021-3838 is a critical-severity vulnerability rated 9.8/10 on the CVSS scale. 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. EPSS estimates a 1.43% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Dompdf Project | Dompdf | < 2.0.0 |
References
- https://huntr.com/bounties/0bdddc12-ff67-4815-ab9f-6011a974f48eExploit, Issue Tracking, Patch, Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2021-3838?
How severe is CVE-2021-3838?
How do I fix CVE-2021-3838?
Are you affected by CVE-2021-3838?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
