# CVE-2023-23924: URI validation failure on SVG parsing in Dompdf

- Severity: Critical 10.0 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:L/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 3.95%, higher than 90% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2023-01-31T23:54:30.162Z
- Modified: 2026-09-10T03:49:56.603Z
- Also known as: GHSA-3cw5-7cxw-v5qg
- Weaknesses: CWE-551, CWE-863
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- dompdf dompdf: < 2.0.2
- dompdf/dompdf (Packagist): before 2.0.2
- dompdf_project dompdf: 2.0.1

## Every score

- GitHub_M: CVSS:3.1 10.0 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:L/A:H`
- GitHub: CVSS:3.1 10.0 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:L/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/dompdf/dompdf/security/advisories/GHSA-3cw5-7cxw-v5qg> (exploit, third-party-advisory, web)
- <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://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)

## Sources

- CVE List: [CVE-2023-23924](https://www.cve.org/CVERecord?id=CVE-2023-23924), CVE Terms of Use, modified 2025-03-10
- GitHub Advisory Database: [GHSA-3cw5-7cxw-v5qg](https://github.com/advisories/GHSA-3cw5-7cxw-v5qg), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2023-23924](https://nvd.nist.gov/vuln/detail/CVE-2023-23924), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-23924 · Whole record: https://cve.day/CVE-2023-23924.json · Rebuilt by cve.day 2026-11-25T22:58:21.781Z
