Dompdf is an HTML to PDF converter written in php. Due to the difference in the attribute parser of Dompdf and php-svg-lib, an attacker can still call arbitrary URLs with arbitrary protocols. Dompdf parses the href attribute of image tags and respects xlink:href even if href is specified. However, php-svg-lib, which is later used to parse the svg file, parses the href attribute. Since href is respected if both xlink:href and href is specified, it's possible to bypass the protection on the Dompdf side by providing an empty xlink:href attribute. An attacker can exploit the vulnerability to call arbitrary URLs with arbitrary protocols if they provide an SVG file to the Dompdf. In PHP versions before 8.0.0, it leads to arbitrary unserialize, which will lead, at the very least, to arbitrary file deletion and might lead to remote code execution, depending on available classes. This vulnerability has been addressed in commit 95009ea98 which has been included in release version 2.0.3. Users are advised to upgrade. There are no known workarounds for this vulnerability.
CVE-2023-24813
This critical-severity CVE scores 10.0 under NVD CVSS v3. EPSS exploit probability: 9.3%, top 7% of all CVEs by exploit prediction. GitHub Security Advisory data not yet ingested — confidence will rise once GHSA publishes (typical lag: hours to days for open-source ecosystem CVEs; never for infrastructure-only CVEs).
- High severity, but no confirmed exploitation yet
No vendor fix yet — apply a workaround or compensating control (WAF / firewall / segmentation) and watch for a patch.
- CVSS v3
- 10.0
- EG Score
- 10.0(medium)
- EPSS
- 82.7%
- KEV
- Not listed
Published
February 7, 2023
Last Modified
November 21, 2024
Advisory Details (2)
Auto-updated Jul 11, 2026URI validation failure on SVG parsing (Bypass of CVE-2023-23924) · Advisory · dompdf/dompdf · GitHub
https://github.com/dompdf/dompdf/security/advisories/GHSA-56gj-mvh6-rp75commit 95009ea98230 (dompdf/dompdf)
Patch available: dompdf/dompdf v2.0.3 (contains commit 95009ea98230)
https://github.com/dompdf/dompdf/commit/95009ea98230f9b084b040c34e3869ef3dccc9aaWeakness Classification(1)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Frequently asked(5)
What is CVE-2023-24813?
When was CVE-2023-24813 disclosed?
Is CVE-2023-24813 actively exploited?
What is the CVSS score of CVE-2023-24813?
How do I remediate CVE-2023-24813?
Dependency Blast Radius
Explore the affected products and dependency analysis for CVE-2023-24813
Is Your Infrastructure Affected by CVE-2023-24813?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.