CVE-2021-3902
published critical CVSS 3.0 · 9.8Improper Restriction of XML External Entity Reference in dompdf/dompdf
Package status and fixes
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.0
- Base score
- 9.8 / 10
- Severity
- critical
- Provider
- @huntr_ai · cna
- Vector string
- CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 9.8 | critical | CISA-ADP · adp | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| dompdf | dompdf/dompdf | unspecified to < 2.0.0 (affected · custom) | @huntr_ai · cna |
| dompdf | dompdf | 0 to < 2.0.0 (affected · custom)Default: unknown | CISA-ADP · adp |
Weaknesses
1- CWE-611 CWE-611 Improper Restriction of XML External Entity Reference
References
2Provider assertions
2@huntr_ai · cna
Improper Restriction of XML External Entity Reference in dompdf/dompdf
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- bfeff315531e29c0dd582e59b05f14db67ea5b6756bd421d3f91f9ff15d6188f
- Ingested
- 23 Sep 2026, 07:55:59 UTC
- Source record
- Official CVE record