What’s Vulnerable › Vulnerabilities

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

Description

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.

Affected products

How to fix

Upgrade to a fixed version: dompdf 2.0.0; Packagist Dompdf/Dompdf 2.0.0. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2021-3902 or the next vulnerability affects your stack