CVE-2024-25117
CVE-2024-25117 is a medium-severity vulnerability in Dompdf Php-svg-lib with a CVSS 3.x base score of 6.8. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-610.
Key facts
- Severity: Medium (CVSS 3.x base score 6.8)
- EPSS exploit prediction: 1% (56th percentile)
- Actively exploited: Not listed in CISA KEV
- EU (EUVD) id: EUVD-2024-0625
- Weakness: CWE-610
- Affected product: Dompdf Php-svg-lib
- Published:
- Last modified:
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.
Frequently asked questions
- What is CVE-2024-25117?
- 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.
- How severe is CVE-2024-25117?
- CVE-2024-25117 has a CVSS 3.x base score of 6.8, rated medium severity. It is exploitable over local access with low attack complexity, requires no privileges and no user interaction. Impact on confidentiality is low, integrity low, and availability low.
- Is CVE-2024-25117 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 1% (56th percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2024-25117?
- CVE-2024-25117 affects Dompdf Php-svg-lib. See the affected-products list for the exact vulnerable versions.
- How do I fix CVE-2024-25117?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround.
- Does CVE-2024-25117 have an EU (EUVD) identifier?
- Yes. CVE-2024-25117 is tracked in the ENISA EU Vulnerability Database (EUVD) as EUVD-2024-0625.
- When was CVE-2024-25117 published?
- CVE-2024-25117 was published on 2024-02-21 and last updated on 2026-06-17.
References
- https://github.com/dompdf/php-svg-lib/commit/732faa9fb4309221e2bd9b2fda5de44f947133aa
- https://github.com/dompdf/php-svg-lib/commit/8ffcc41bbde39f09f94b9760768086f12bbdce42
- https://github.com/dompdf/php-svg-lib/security/advisories/GHSA-f3qr-qr4x-j273
Affected products (1)
- cpe:2.3:a:dompdf:php-svg-lib:*:*:*:*:*:*:*:*
More vulnerabilities in Dompdf Php-svg-lib
- CVE-2023-50252 — High (CVSS 8.3): php-svg-lib is an SVG file parsing / rendering library. Prior to version 0.5.1, when handling `<use>` tag that…
- CVE-2023-50251 — Medium (CVSS 5.3): php-svg-lib is an SVG file parsing / rendering library. Prior to version 0.5.1, when parsing the attributes passed to a…
All CVEs affecting Dompdf Php-svg-lib →
Other CWE-610 vulnerabilities
- CVE-2022-27593 — Critical (CVSS 10.0): An externally controlled reference to a resource vulnerability has been reported to affect QNAP NAS running Photo…
- CVE-2019-7290 — Critical (CVSS 10.0): An access issue was addressed with additional sandbox restrictions. This issue is fixed in Shortcuts 2.1.3 for iOS. A…
- CVE-2017-16088 — Critical (CVSS 10.0): The safe-eval module describes itself as a safer version of eval. By accessing the object constructors, un-sanitized…
- CVE-2022-39206 — Critical (CVSS 9.9): Onedev is an open source, self-hosted Git Server with CI/CD and Kanban. When using Docker-based job executors, the…
- CVE-2026-47643 — Critical (CVSS 9.8): External control of file name or path in Azure Stack Edge allows an unauthorized attacker to execute code over a…
- CVE-2022-20239 — Critical (CVSS 9.8): remap_pfn_range' here may map out of size kernel memory (for example, may map the kernel area), and because the…
Browse all CWE-610 vulnerabilities →
Threat intelligence
Threat-intel indicators referencing this CVE:
- 45.84.120.3 (ipv4-addr)
- 79.137.34.248 (ipv4-addr)
- 64.53.7.231 (ipv4-addr)
- 45.232.73.84 (ipv4-addr)
- 223.197.186.7 (ipv4-addr)
- 221.161.235.168 (ipv4-addr)
- 218.51.148.194 (ipv4-addr)
- 201.186.40.250 (ipv4-addr)