CVE-2023-24813 in Dompdf Project Dompdf
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,...
Affects 1 product from 1 vendor. Facts below cite their sources.
Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Dompdf Project | Dompdf | 2.0.2 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Vendor PSIRT: [email protected]
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official description
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.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2023-24813 |
|---|---|
| BreachSpider ID | BS-2023-GLOBAL-062022-C |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| Published | 2023-02-07 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-436: CWE-436
Related attack patterns (CAPEC)
CAPEC-34 HTTP Response Splitting via CWE-436
CAPEC-105 HTTP Request Splitting via CWE-436
CAPEC-273 HTTP Response Smuggling via CWE-436
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
CVE-2023-24813 affects Dompdf, an HTML to PDF converter, due to a discrepancy in attribute parsing between Dompdf and php-svg-lib. This allows attackers to call arbitrary URLs with arbitrary protocols, potentially leading to SSRF or other attacks.
An attacker can exploit this vulnerability by crafting an SVG file with an `image` tag that includes both `href` and `xlink:href` attributes. Dompdf will use `xlink:href` if `href` is present, but php-svg-lib will parse `href`. This discrepancy can be leveraged to execute arbitrary URLs with arbitrary protocols, such as file:// or http://, leading to potential SSRF attacks or other malicious activities.
Questions
What is CVE-2023-24813?
CVE-2023-24813 affects Dompdf, an HTML to PDF converter, due to a discrepancy in attribute parsing between Dompdf and php-svg-lib. This allows attackers to call arbitrary URLs with arbitrary protocols, potentially leading to SSRF or other attacks.
What is the CVSS score for CVE-2023-24813?
CVE-2023-24813 has CVSS 9.8 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H. EPSS: 1.9%.
Is CVE-2023-24813 actively exploited?
No confirmed active exploitation of CVE-2023-24813 as of 2026-09-25.
How do I remediate CVE-2023-24813?
Priority: IMMEDIATE. PSIRT: [email protected]
What systems are affected by CVE-2023-24813?
CVE-2023-24813 affects Dompdf Project Dompdf.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Dompdf Project","product":"Dompdf","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.