CWE
611 918
Advisory Published
Advisory Published
Updated

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

First published: Fri Nov 15 2024(Updated: )

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.

Credit: security@huntr.dev security@huntr.dev

Affected SoftwareAffected VersionHow to fix
composer/dompdf/dompdf<2.0.0
2.0.0
Dompdf<2.0.0

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the severity of CVE-2021-3902?

    CVE-2021-3902 has a medium severity rating due to its potential for exploitation through SSRF and deserialization attacks.

  • How do I fix CVE-2021-3902?

    To fix CVE-2021-3902, upgrade to dompdf version 2.0.0 or higher.

  • What does CVE-2021-3902 vulnerability affect?

    CVE-2021-3902 affects all versions of dompdf prior to 2.0.0.

  • Can CVE-2021-3902 be exploited if remote access is disabled?

    Yes, CVE-2021-3902 can be exploited regardless of whether the isRemoteEnabled option is set to true or false.

  • What type of attacks can CVE-2021-3902 facilitate?

    CVE-2021-3902 can facilitate Server-Side Request Forgery (SSRF) and deserialization attacks.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203