Skip to content
OpenAdvisories
Critical · 10.0 Public exploit CVE-2023-23924 EUVD-2023-0610GHSA-3cw5-7cxw-v5qg

URI validation failure on SVG parsing in Dompdf

Published Jan 31, 2023 · Updated Mar 10, 2025 · Assigned by GitHub_M

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.

Affected products

VendorProductAffectedFixed
dompdf dompdf < 2.0.2 —

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
Packagist dompdf/dompdf < 2.0.2 2.0.2 GHSA-3cw5-7cxw-v5qg

References