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

Published 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.

Affected Software

2 affected componentsFixes available
composer/dompdf/dompdf<2.0.0
2.0.0
Dompdf Project Dompdf<2.0.0

Event History

Nov 15, 2024
CVE Published
via MITRE·10:52 AM
Data Sourced
via MITRE·10:52 AM
DescriptionSeverityWeakness
Advisory Published
via GitHub·12:31 PM
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

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.

2

How do I fix CVE-2021-3902?

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

3

What does CVE-2021-3902 vulnerability affect?

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

4

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.

5

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.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203