Live threats

All CVEs / Dompdf Project

CVE-2021-3902Dompdf Project Dompdf

Critical 9.8 No auth needed

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Dompdf.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
dompdf_projectdompdf< 2.0.0

Official sources

References

Links published by the sources. Open them with care.