CVE-2023-23924
URI validation failure on SVG parsing in Dompdf
Also known as GHSA-3cw5-7cxw-v5qg
Mitigation
- Upgrade dompdf/dompdf to 2.0.2 or later.
Who should check
- Projects that depend on Packagist package dompdf/dompdf (< 2.0.2)
- Anyone running dompdf < 2.0.2
Vulnerability facts
- Affected
- dompdf/dompdf < 2.0.2
- Fixed in
- 2.0.2
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 10.0 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:L/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: None
- User interaction: None
- Scope: Changed (impact reaches other components)
- Confidentiality impact: High
- Integrity impact: Low
- Availability impact: High
- EPSS
- 3.74% chance of exploitation in 30 days (percentile 91, 2026-11-26)
- CWE
- CWE-551
- Modified
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 and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Packagist dompdf/dompdf | < 2.0.2 | 2.0.2 | osv |
| dompdf | < 2.0.2 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2023-23924. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2023-23924.md Affected: dompdf/dompdf < 2.0.2 Fixed in: 2.0.2 Steps: 1. Search this machine and project for dompdf/dompdf (Packagist), dompdf: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
FAQ
Is CVE-2023-23924 being exploited?
There is no confirmed exploitation: CVE-2023-23924 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 3.74% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2023-23924?
Critical: CVSS 10.0 (v3.1, scored by CNA). Remote, no login needed.
Which versions are affected by CVE-2023-23924?
dompdf/dompdf < 2.0.2.
Is there a fix for CVE-2023-23924?
Yes. Fixed in 2.0.2. Upgrade dompdf/dompdf to 2.0.2 or later.
How do I check if I'm affected by CVE-2023-23924?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.