CVE & CISA-KEV Catalog

CVE-2024-25117

MEDIUM
6.8
CVSS v3
NVD

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.

How to fix

Remediation Available
php-dompdf-svg-libDebian
Fixed in:0.5.0-3+deb12u1CVE-2024-25117
Fixed in:0.5.2-1CVE-2024-25117

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorLocal
Attack ComplexityLow
Privileges RequiredNone
User InteractionNone
ScopeChanged

Impact

ConfidentialityLow
IntegrityLow
AvailabilityLow

CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L

Exploit Intelligence

0.93%probability of exploitation in 30 days
56thpercentile

Moderate risk: more likely to be exploited than 56% of all known CVEs.

References

Vendor Advisory1
Embed a live status badge for CVE-2024-25117
CVE-2024-25117 severity badge

Markdown

[![CVE-2024-25117](https://tridentstack.com/cve/badge/CVE-2024-25117.svg)](https://tridentstack.com/cve/CVE-2024-25117)

HTML

<a href="https://tridentstack.com/cve/CVE-2024-25117"><img src="https://tridentstack.com/cve/badge/CVE-2024-25117.svg" alt="CVE-2024-25117"></a>

Find and fix vulnerabilities across your fleet

TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.

Start free

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2025-02-05.