CVE-2021-3838
CRITICALDescription
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.
How to fix
Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.
CVSS v3 Vector
Exploitability
Impact
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Exploit Intelligence
Moderate risk: more likely to be exploited than 70% of all known CVEs.
References
Related Vulnerabilities
Other CWE-502 (Deserialization of Untrusted Data) vulnerabilities, ordered by exploit likelihood. View all
| CVE | Severity | CVSS | EPSS | Exploited | Fix |
|---|---|---|---|---|---|
| CVE-2023-0669 | High | 7.2 | 100% | KEV + Ransom | Fix |
| CVE-2021-44228 | Critical | 10.0 | 100% | KEV + Ransom | Fix |
| CVE-2021-35464 | Critical | 9.8 | 100% | KEV + Ransom | Fix |
| CVE-2023-29300 | Critical | 9.8 | 100% | KEV + Ransom | - |
| CVE-2025-53770 | Critical | 9.8 | 100% | KEV + Ransom | Fix |
| CVE-2022-47986 | Critical | 9.8 | 100% | KEV + Ransom | - |
Embed a live status badge for CVE-2021-3838
Markdown
[](https://tridentstack.com/cve/CVE-2021-3838)HTML
<a href="https://tridentstack.com/cve/CVE-2021-3838"><img src="https://tridentstack.com/cve/badge/CVE-2021-3838.svg" alt="CVE-2021-3838"></a>Find and fix vulnerabilities across your fleet
TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.
Start freeThis product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2024-11-19.