What’s Vulnerable › Vulnerabilities
CVE-2023-23924: URI validation failure on SVG parsing in Dompdf
- Severity: critical (CVSS 9.8 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 3.6% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2023-02-01 · updated 2026-06-17
- Weakness: CWE-551
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
- dompdf: 2.0.1
- Packagist Dompdf/Dompdf: before 2.0.2; v0.6.0, v0.6.1, v0.6.2, v0.7.0, v0.7.0-beta, v0.7.0-beta2 (+18) — fixed in 2.0.2
How to fix
Upgrade to a fixed version: Packagist Dompdf/Dompdf 2.0.2. Check the vendor advisory for mitigations.
References
- https://github.com/dompdf/dompdf/commit/7558f07f693b2ac3266089f21051e6b78c6a0c85
- https://github.com/dompdf/dompdf/releases/tag/v2.0.2
- https://github.com/dompdf/dompdf/security/advisories/GHSA-3cw5-7cxw-v5qg
- https://github.com/dompdf/dompdf/commit/7558f07f693b2ac3266089f21051e6b78c6a0c85
- https://github.com/dompdf/dompdf/releases/tag/v2.0.2
- https://github.com/dompdf/dompdf/security/advisories/GHSA-3cw5-7cxw-v5qg
Get alerted when CVE-2023-23924 or the next vulnerability affects your stack