Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. dompdf/dompdf
  4. ›
  5. CVE-2021-3902

CVE-2021-3902: Improper Restriction of XML External Entity Reference in dompdf/dompdf

November 15, 2024 (updated November 18, 2024)

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.

References

  • github.com/advisories/GHSA-3vjh-xrhf-v9xh
  • github.com/dompdf/dompdf
  • github.com/dompdf/dompdf/commit/f56bc8e40be6c0ae0825e6c7396f4db80620b799
  • huntr.com/bounties/a6071c07-806f-429a-8656-a4742e4191b1
  • nvd.nist.gov/vuln/detail/CVE-2021-3902

Code Behaviors & Features

Detect and mitigate CVE-2021-3902 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2.0.0

Fixed versions

  • 2.0.0

Solution

Upgrade to version 2.0.0 or above.

Impact 9.8 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-611: Improper Restriction of XML External Entity Reference

Source file

packagist/dompdf/dompdf/CVE-2021-3902.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:11 +0000.