CVE-2021-3902Dompdf Project Dompdf
Critical 9.8 No auth needed
Follow: this CVE · Dompdf Project · Dompdf Project Dompdf We alert you by email or Slack (account required).
- Priority
- 74
- CVSS 3.1
- 9.8
- EPSS
- 1.0% probability of exploitation in 30 days · percentile 60
- Auth required
- No
- Published
- Nov 15, 2024
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-611
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: yes · Technical impact: total
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
What happens
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.
What to do
- Apply the vendor's security update for Dompdf.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Packagist | dompdf/dompdf |
< 2.0.0 |
2.0.0 |
composer require "dompdf/dompdf:^2.0.0" |
Per OSV / GitHub Advisories (GHSA-3vjh-xrhf-v9xh). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| dompdf_project | dompdf | < 2.0.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch
- huntr.com Exploit Issue Tracking Patch