CVE-2021-3902
CVE-2021-3902 is a critical-severity vulnerability in Dompdf Project Dompdf with a CVSS 3.x base score of 9.8. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-611.
Key facts
- Severity: Critical (CVSS 3.x base score 9.8)
- EPSS exploit prediction: 1% (56th percentile)
- Actively exploited: Not listed in CISA KEV
- EU (EUVD) id: EUVD-2024-3187
- Weakness: CWE-611
- Affected product: Dompdf Project Dompdf
- Published:
- Last modified:
Description
An improper restriction of external entities (XXE) vulnerability in dompdf/dompdf's SVG parser allows for Server-Side Request Forgery (SSRF) and deserialization attacks. This issue affects all versions prior to 2.0.0. The vulnerability can be exploited even if the isRemoteEnabled option is set to false. It allows attackers to perform SSRF, disclose internal image files, and cause PHAR deserialization attacks.
Frequently asked questions
- What is CVE-2021-3902?
- An improper restriction of external entities (XXE) vulnerability in dompdf/dompdf's SVG parser allows for Server-Side Request Forgery (SSRF) and deserialization attacks. This issue affects all versions prior to 2.0.0. The vulnerability can be exploited even if the isRemoteEnabled option is set to false. It allows attackers to perform SSRF, disclose internal image files, and cause PHAR deserialization attacks.
- How severe is CVE-2021-3902?
- CVE-2021-3902 has a CVSS 3.x base score of 9.8, rated critical severity. It is exploitable over network with low attack complexity, requires no privileges and no user interaction. Impact on confidentiality is high, integrity high, and availability high.
- Is CVE-2021-3902 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 1% (56th percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2021-3902?
- CVE-2021-3902 affects Dompdf Project Dompdf. See the affected-products list for the exact vulnerable versions.
- How do I fix CVE-2021-3902?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround. Given its critical severity, prioritise patching exposed systems.
- Does CVE-2021-3902 have an EU (EUVD) identifier?
- Yes. CVE-2021-3902 is tracked in the ENISA EU Vulnerability Database (EUVD) as EUVD-2024-3187.
- When was CVE-2021-3902 published?
- CVE-2021-3902 was published on 2024-11-15 and last updated on 2026-06-17.
References
- https://github.com/dompdf/dompdf/commit/f56bc8e40be6c0ae0825e6c7396f4db80620b799
- https://huntr.com/bounties/a6071c07-806f-429a-8656-a4742e4191b1
Affected products (1)
- cpe:2.3:a:dompdf_project:dompdf:*:*:*:*:*:*:*:*
More vulnerabilities in Dompdf Project Dompdf
- CVE-2023-24813 — Critical (CVSS 10.0): Dompdf is an HTML to PDF converter written in php. Due to the difference in the attribute parser of Dompdf and…
- CVE-2023-23924 — Critical (CVSS 10.0): Dompdf is an HTML to PDF converter. The URI validation on dompdf 2.0.1 can be bypassed on SVG parsing by passing…
- CVE-2021-3838 — Critical (CVSS 9.8): DomPDF before version 2.0.0 is vulnerable to PHAR deserialization due to a lack of checking on the protocol before…
- CVE-2022-28368 — Critical (CVSS 9.8): Dompdf 1.2.1 allows remote code execution via a .php file in the src:url field of an @font-face Cascading Style Sheets…
- CVE-2014-5013 — High (CVSS 8.8): DOMPDF before 0.6.2 allows remote code execution, a related issue to CVE-2014-2383.
- CVE-2022-41343 — High (CVSS 7.5): registerFont in FontMetrics.php in Dompdf before 2.0.1 allows remote file inclusion because a URI validation failure…
All CVEs affecting Dompdf Project Dompdf →
Other CWE-611 (Improper Restriction of XML External Entity Reference (XXE)) vulnerabilities
- CVE-2022-22486 — Critical (CVSS 10.0): IBM Tivoli Workload Scheduler 9.4, 9.5, and 10.1 is vulnerable to an XML External Entity Injection (XXE) attack when…
- CVE-2019-14678 — Critical (CVSS 10.0): SAS XML Mapper 9.45 has an XML External Entity (XXE) vulnerability that can be leveraged by malicious attackers in…
- CVE-2015-9280 — Critical (CVSS 10.0): MailEnable before 8.60 allows XXE via an XML document in the request.aspx Options parameter.
- CVE-2018-1000838 — Critical (CVSS 10.0): autopsy version <= 4.9.0 contains a XML External Entity (XXE) vulnerability in CaseMetadata XML Parser that can result…
- CVE-2018-1000837 — Critical (CVSS 10.0): UML Designer version <= 8.0.0 contains a XML External Entity (XXE) vulnerability in XML parser for plugins that can…
- CVE-2018-1000835 — Critical (CVSS 10.0): KeePassDX version <= 2.5.0.0beta17 contains a XML External Entity (XXE) vulnerability in kdbx file parser that can…
Browse all CWE-611 (Improper Restriction of XML External Entity Reference (XXE)) vulnerabilities →