CVE-2023-23924
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.
Severity
CRITICAL
CVSS v3
10.0
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:L/A:H · source cna
Exploit chance (EPSS)
3.725%
chance of exploitation in the next 30 days
higher than 90% of scored CVEs · 2026-11-17
CISA KEV
Not listed
Public exploit code
Yes
Exploit references (NVD and CNA): 1
Metasploit modules: 0
Nuclei templates: 0
Weakness
- CWE-551: Incorrect Behavior Order: Authorization Before Parsing and Canonicalization
CISA SSVC decision points
| Exploitation | poc |
|---|---|
| Automatable | yes |
| Technical impact | partial |
| Scored | 2025-03-10 |
Timeline
- 2023-01-31Published by the CNA23:54 UTC
- 2023-02-01GitHub advisory published (GHSA-3cw5-7cxw-v5qg)1 day after publication
- 2025-03-10CISA SSVC decision recorded769 days after publication
Exploit and advisory records
GitHub advisory GHSA-3cw5-7cxw-v5qg, affected packages:
| Package | Vulnerable versions | Fixed in |
|---|---|---|
| Packagist dompdf/dompdf | before 2.0.2 | 2.0.2 |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| dompdf_project dompdf | 2.0.1no fix listed | not listed |
References
- https://github.com/dompdf/dompdf/commit/7558f07f693b2ac3266089f21051e6b78c6a0c85
- https://github.com/dompdf/dompdf/security/advisories/GHSA-3cw5-7cxw-v5qg
- https://github.com/dompdf/dompdf/releases/tag/v2.0.2
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2023-23924'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2023-23924'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2023-23924'curl 'https://api.contrastcyber.com/cve_products/CVE-2023-23924'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).