XML External Entity (XXE) Injection Affecting php-dompdf package, versions <2.0.2+dfsg-1


Severity

Recommended
0.0
critical
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
0.09% (40th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about XML External Entity (XXE) Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-DEBIAN12-PHPDOMPDF-3317138
  • published6 Feb 2023
  • disclosed15 Nov 2024

Introduced: 6 Feb 2023

CVE-2021-3902  (opens in a new tab)
CWE-611  (opens in a new tab)

How to fix?

Upgrade Debian:12 php-dompdf to version 2.0.2+dfsg-1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream php-dompdf package and not the php-dompdf package as distributed by Debian. See How to fix? for Debian:12 relevant fixed versions and status.

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.

CVSS Scores

version 3.1