# Dompdf's usage of vulnerable version of phenx/php-svg-lib leads to restriction bypass and potential RCE

Source: https://junglewise.ai/threats/dompdf-s-usage-of-vulnerable-version-of-phenx-php-svg-lib-leads-to-a2967319  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2024-02-22  
License: CC BY 4.0 with a link back

Severity: low · CVSS 3.1 · Published 2024-02-22

Dompdf's usage of vulnerable version of phenx/php-svg-lib leads to restriction bypass and potential RCE

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

**How severe is This vulnerability?** Low severity, with a CVSS score of 3.1, published 22 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 This vulnerability?** 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?** 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

## Related threats

- [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)
- [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)
