CVE-2023-23924
CRITICAL 9.8CVSS 3.1Dompdf vulnerable to URI validation failure on SVG parsing
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.
- Published
- 1 Feb 2023
- Last modified
- 10 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-551CWE-863
- Also known as
- GHSA-3cw5-7cxw-v5qg
- Sources
- NVDJSONOSV GHSA-3cw5-7cxw-v5qgJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | CRITICAL 10.0 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:L/A:H |
| OSV | GitHub | CVSS 3.1 | CRITICAL 10.0 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:L/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | dompdf_project | dompdfcpe:2.3:a:dompdf_project:dompdf:2.0.1:*:*:*:*:*:*:* |
= 2.0.1 | |
| OSV | Packagist | dompdf/dompdf | < 2.0.2 | 2.0.2 |
References
- https://github.com/dompdf/dompdf/commit/7558f07f693b2ac3266089f21051e6b78c6a0c85 · Patch, Third Party Advisory, WEB
- https://github.com/dompdf/dompdf/releases/tag/v2.0.2 · Release Notes, Third Party Advisory, WEB
- https://github.com/dompdf/dompdf/security/advisories/GHSA-3cw5-7cxw-v5qg · Exploit, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2023-23924 · ADVISORY
- https://github.com/FriendsOfPHP/security-advisories/blob/master/dompdf/dompdf/CVE-2023-23924.yaml · WEB
- https://github.com/advisories/GHSA-3cw5-7cxw-v5qg · ADVISORY
- https://github.com/dompdf/dompdf · PACKAGE
History
- 25 Nov 2026 20:35 UTC · NVD: first stored (published 1 Feb 2023)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 1 Feb 2023)