Improper Restriction of XML External Entity Reference in dompdf/dompdf
Date: 2024-11
Affected: composer/dompdf/dompdf
Attack vector: deserialization
Category: vulnerability-disclosure
Severity: Critical
CVE: CVE-2021-3902
CWE: CWE-611
CVSS: 9.8 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H)

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.


Mitigations:

Architectural layers (MAESTRO):