Home / dompdf / php-svg-lib / CVE-2024-25117
CVE-2024-25117: is it exploited, and which versions of dompdf php-svg-lib are affected and fixed?
CVE-2024-25117 is an external Control of File Name or Path vulnerability in dompdf php-svg-lib. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 17:39 UTC). Affected: phenx/php-svg-lib before 0.5.2 (GitHub advisory GHSA-f3qr-qr4x-j273). Fixed in 0.5.2 (GitHub advisory GHSA-f3qr-qr4x-j273). Severity: Medium (6.8, CVSS 3.1, from GitHub_M).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 17:39 UTC, CVE record November 19, 2026, 07:11 UTC and NVD November 19, 2026, 07:32 UTC.
What is CVE-2024-25117?
php-svg-lib lacks path validation on font through SVG inline styles
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.
From the CVE record by GitHub_M, last updated August 28, 2024, 17:57 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| dompdf | php-svg-lib | < 0.5.2 |
As the CVE record by GitHub_M states it, last updated August 28, 2024. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| Packagist | phenx/php-svg-lib | < 0.5.2 | 0.5.2 | GHSA-f3qr-qr4x-j273 |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated February 21, 2024. Summary: php-svg-lib lacks path validation on font through SVG inline styles.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| dompdf | php-svg-lib | before 0.5.2 | application |
NVD analysis (status Analyzed), last modified June 17, 2026, 07:15 UTC.
How severe is CVE-2024-25117?
| Score | Version | Vector | Source |
|---|---|---|---|
| Medium 6.8 | CVSS 3.1 | CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L | GitHub_M |
| Critical 9.8 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2024-25117 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: poc; automatable: no; technical impact: total (CISA ADP, February 22, 2024)
- EPSS
- 0.93% probability of exploitation activity in the next 30 days, percentile 61.9 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
- CWE-73 External Control of File Name or Path
- CWE-502 Deserialization of Untrusted Data
- CWE-610 Externally Controlled Reference to a Resource in Another Sphere
Where are the vendor advisories and references?
- https://github.com/dompdf/php-svg-lib/security/advisories/GHSA-f3qr-qr4x-j273 x_refsource_CONFIRM
- https://github.com/dompdf/php-svg-lib/commit/732faa9fb4309221e2bd9b2fda5de44f947133aa x_refsource_MISC
- https://github.com/dompdf/php-svg-lib/commit/8ffcc41bbde39f09f94b9760768086f12bbdce42 x_refsource_MISC
When was it published, and where is the official record?
- Reserved
- February 5, 2024
- Published
- February 21, 2024, 16:25 UTC
- CVE record updated
- August 28, 2024, 17:57 UTC by GitHub_M
- NVD
- Analyzed, last modified June 17, 2026, 07:15 UTC
- Last checked
- CVE list November 19, 2026, 07:11 UTC; NVD November 19, 2026, 07:32 UTC; KEV December 3, 2026, 17:39 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD
What other CVEs affect php-svg-lib?
- Dec 12, 2023CVE-2023-50252 dompdf php-svg-lib: external Control of System or Configuration Setting
- Dec 12, 2023CVE-2023-50251 dompdf php-svg-lib: uncontrolled recursion
Questions about CVE-2024-25117
Is CVE-2024-25117 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 17:39 UTC. FIRST's EPSS gives it a 0.93% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of dompdf php-svg-lib are affected by CVE-2024-25117?
phenx/php-svg-lib before 0.5.2, per the GitHub advisory GHSA-f3qr-qr4x-j273. The tables above give every range the sources list.
Which version fixes CVE-2024-25117?
0.5.2, per the GitHub advisory GHSA-f3qr-qr4x-j273. Check the vendor's advisory before you rely on it.
How severe is CVE-2024-25117?
Medium (6.8, CVSS 3.1, from GitHub_M). The severity table above shows each score with its source.
Where is the official record of CVE-2024-25117?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.