# CVE-2024-25117: php-svg-lib lacks path validation on font through SVG inline styles

Source: https://junglewise.ai/threats/cve-2024-25117-php-svg-lib-lacks-path-validation-on-font-through-svg-inline  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2024-02-21  
License: CC BY 4.0 with a link back

CVE-2024-25117 · Severity: low · CVSS 3.1 · Published 2024-02-21

php-svg-lib lacks path validation on font through SVG inline styles

Technologies: [phenx/php-svg-lib (Packagist)](https://junglewise.ai/threats/technologies/phenx-php-svg-lib). Vendors: [Packagist](https://junglewise.ai/threats/vendors/packagist).

## Quick answers

**Is CVE-2024-25117 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2024-25117 being exploited in the wild.

**How severe is CVE-2024-25117?** Low severity, with a CVSS score of 3.1, published 21 February 2024.

**Which products and versions are affected?** phenx/php-svg-lib (Packagist) ECOSYSTEM:introduced=0,fixed=0.5.2.

**Is there a fix for CVE-2024-25117?** Yes. phenx/php-svg-lib (Packagist): upgrade to 0.5.2 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2024-25117?** Check whether you run phenx/php-svg-lib (Packagist) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- phenx/php-svg-lib (Packagist): upgrade to 0.5.2 or later

  ```sh
  composer require phenx/php-svg-lib:^0.5.2
  ```


## Affected products

- phenx/php-svg-lib (Packagist) ECOSYSTEM:introduced=0,fixed=0.5.2

## Identifiers

- CVE-2024-25117
- GHSA-f3qr-qr4x-j273

## Related threats

- [Dompdf's usage of vulnerable version of phenx/php-svg-lib leads to restriction bypass and potential RCE](https://junglewise.ai/threats/dompdf-s-usage-of-vulnerable-version-of-phenx-php-svg-lib-leads-to-a2967319)
- [Denial of service caused by infinite recursion when parsing SVG document](https://junglewise.ai/threats/cve-2023-50251-denial-of-service-caused-by-infinite-recursion-when-parsing-svg)
