# CVE-2023-50251: Denial of service caused by infinite recursion when parsing SVG document

Source: https://junglewise.ai/threats/cve-2023-50251-denial-of-service-caused-by-infinite-recursion-when-parsing-svg  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2023-12-13  
License: CC BY 4.0 with a link back

CVE-2023-50251 · Severity: low · CVSS 3.1 · Published 2023-12-13

Denial of service caused by infinite recursion when parsing SVG document

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-2023-50251 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2023-50251 being exploited in the wild.

**How severe is CVE-2023-50251?** Low severity, with a CVSS score of 3.1, published 13 December 2023.

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

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

**Am I affected by CVE-2023-50251?** 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.1 or later

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


## Affected products

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

## Identifiers

- CVE-2023-50251
- GHSA-ff5x-7qg5-vwf2

## 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)
- [php-svg-lib lacks path validation on font through SVG inline styles](https://junglewise.ai/threats/cve-2024-25117-php-svg-lib-lacks-path-validation-on-font-through-svg-inline)
