CVE-2021-3902 json
Improper Restriction of XML External Entity Reference in dompdf/dompdf
published 2024-11-15 23 mo ago modified 2026-06-17 4 mo ago also GHSA-3vjh-xrhf-v9xh , EUVD-2024-3187
- cvss
- 9.8
- version 3.0, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.0%
- EPSS 1.0% chance of exploitation in 30 days, percentile 61%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- packagist dompdf/dompdf 2.0.0
- dompdf dompdf/dompdf 2.0.0
- dompdf dompdf 2.0.0
- php-dompdf Debian 12 2.0.2+dfsg-1
debian advisories DEBIAN-CVE-2021-3902
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- yes
- Technical impact
- total
- Assessed
- 23 mo ago
Exploit prediction
0.95% chance of exploitation in the next 30 days, higher than 61% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- huntr.com https://huntr.com/bounties/a6071c07-806f-429a-8656-a4742e4191b1 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.0 | 9.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| CISA ADP | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| CNA | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| packagist | dompdf/dompdf | <2.0.0 |
2.0.0 |
Affected products
- dompdf dompdf/dompdf
- dompdf dompdf
Classification
- Weakness
-
- CWE-611 Improper Restriction of XML External Entity Reference
References
-
github.com
/dompdf/dompdf/commit/f56bc8e40be6c0ae0825e6c7396f4db80620b799
web, patch
-
huntr.com
/bounties/a6071c07-806f-429a-8656-a4742e4191b1
web, exploit, issue-tracking, patch, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2021-3902
advisory
-
github.com
/dompdf/dompdf
package
Sources
- CVE List CVE-2021-3902
- GitHub Advisory GHSA-3vjh-xrhf-v9xh
- NVD CVE-2021-3902
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.