CVE-2024-25117 in Dompdf Php-Svg-Lib and 1 more product
php-svg-lib is a scalable vector graphics (SVG) file parsing/rendering library. Prior to version 0.5.2, php-svg-lib fails to validate that font-family doesn't contain a PHAR url, which might leads to RCE on PHP < 8.0, and doesn't validate if external references are allowed. This might leads to bypass of restrictions...
Affects 2 products from 2 vendors. 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 | Php-Svg-Lib | < 0.5.2 |
Platforms listed by the source (the vulnerable product runs on these; they are not themselves vulnerable): Php Php
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
php-svg-lib is a scalable vector graphics (SVG) file parsing/rendering library. Prior to version 0.5.2, php-svg-lib fails to validate that font-family doesn't contain a PHAR url, which might leads to RCE on PHP < 8.0, and doesn't validate if external references are allowed. This might leads to bypass of restrictions or RCE on projects that are using it, if they do not strictly revalidate the fontName that is passed by php-svg-lib. The `Style::fromAttributes(`), or the `Style::parseCssStyle()` should check the content of the `font-family` and prevents it to use a PHAR url, to avoid passing an invalid and dangerous `fontName` value to other libraries. The same check as done in the `Style::fromStyleSheets` might be reused. Libraries using this library as a dependency might be vulnerable to some bypass of restrictions, or even remote code execution, if they do not double check the value of the `fontName` that is passed by php-svg-lib. Version 0.5.2 contains a fix for this issue.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2024-25117 |
|---|---|
| BreachSpider ID | BS-2024-GLOBAL-190009-C |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| Published | 2024-02-21 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-73: CWE-73
CWE-502: Deserialization of Untrusted Data
Software deserializes untrusted data without validation, allowing crafted objects to execute arbitrary code.
CWE-610: CWE-610
Related attack patterns (CAPEC)
CAPEC-13 Subverting Environment Variable Values via CWE-73
CAPEC-64 Using Slashes and URL Encoding Combined to Bypass Validation Logic via CWE-73
CAPEC-72 URL Encoding via CWE-73
CAPEC-76 Manipulating Web Input to File System Calls via CWE-73
CAPEC-78 Using Escaped Slashes in Alternate Encoding via CWE-73
Show all 10
CAPEC-79 Using Slashes in Alternate Encoding via CWE-73
CAPEC-80 Using UTF-8 Encoding to Bypass Validation Logic via CWE-73
CAPEC-219 XML Routing Detour Attacks via CWE-610
CAPEC-267 Leverage Alternate Encoding via CWE-73
CAPEC-586 Object Injection via CWE-502
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
php-svg-lib prior to version 0.5.2 is vulnerable to remote code execution (RCE) due to improper validation of font-family and external references, which can be exploited if the library is used in projects that do not strictly revalidate these inputs.
An attacker can craft a malicious SVG file with a font-family attribute containing a PHAR URL, which can lead to RCE on PHP versions below 8.0. Additionally, the library does not validate external references, potentially allowing bypass of restrictions or RCE.
Questions
What is CVE-2024-25117?
php-svg-lib prior to version 0.5.2 is vulnerable to remote code execution (RCE) due to improper validation of font-family and external references, which can be exploited if the library is used in projects that do not strictly revalidate these inputs.
What is the CVSS score for CVE-2024-25117?
CVE-2024-25117 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.3%.
Is CVE-2024-25117 actively exploited?
No confirmed active exploitation of CVE-2024-25117 as of 2026-09-25.
How do I remediate CVE-2024-25117?
Priority: IMMEDIATE. PSIRT: [email protected]
What systems are affected by CVE-2024-25117?
CVE-2024-25117 affects Dompdf Php-Svg-Lib.
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","product":"Php-Svg-Lib","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.