Skip to content
OpenAdvisories
Critical · 9.8 CVE-2021-3902 EUVD-2024-3187GHSA-3vjh-xrhf-v9xh

Improper Restriction of XML External Entity Reference in dompdf/dompdf

Published Nov 15, 2024 · Updated Nov 18, 2024 · Assigned by @huntr_ai

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

VendorProductAffectedFixed
dompdf dompdf/dompdf unspecified – < 2.0.0 2.0.0

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 12 php-dompdf 2.0.2+dfsg-1 —

Affected packages

EcosystemPackageAffectedFixedRecord
Packagist dompdf/dompdf < 2.0.0 2.0.0 GHSA-3vjh-xrhf-v9xh

References