CVE-2023-23924

Critical

Description

Dompdf is an HTML to PDF converter. The URI validation on dompdf 2.0.1 can be bypassed on SVG parsing by passing `<image>` tags with uppercase letters. This may lead to arbitrary object unserialize on PHP < 8, through the `phar` URL wrapper. An attacker can exploit the vulnerability to call arbitrary URL with arbitrary protocols, if they can provide a SVG file to dompdf. In PHP versions before 8.0.0, it leads to arbitrary unserialize, that will lead to the very least to an arbitrary file deletion and even remote code execution, depending on classes that are available.

SeverityCritical
CVSS10.0
Exploit probability—
ProductDompdf
PublishedFeb 1, 2023
First seenFeb 1, 2023
Weakness typeCWE-551CWE-551

How to fix

Update
  • dompdf/dompdf2.0.2 or later

Affected products

ProductAffected versionsFixed in
dompdf_project dompdf2.0.1—
dompdf/dompdfPackagistv < 2.0.22.0.2

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.