Skip to content
OpenAdvisories
Medium · 5.3 CVE-2023-50251 EUVD-2023-3195GHSA-ff5x-7qg5-vwf2

php-svg-lib possible DoS caused by infinite recursion when parsing SVG document

Published Dec 12, 2023 · Updated May 22, 2025 · Assigned by GitHub_M

Description

php-svg-lib is an SVG file parsing / rendering library. Prior to version 0.5.1, when parsing the attributes passed to a `use` tag inside an svg document, an attacker can cause the system to go to an infinite recursion. Depending on the system configuration and attack pattern this could exhaust the memory available to the executing process and/or to the server itself. An attacker sending multiple request to a system to render the above payload can potentially cause resource exhaustion to the point that the system is unable to handle incoming request. Version 0.5.1 contains a patch for this issue.

Affected products

VendorProductAffectedFixed
dompdf php-svg-lib < 0.5.1 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 12 php-dompdf-svg-lib 0.5.0-3+deb12u1 DSA-5642-1

Affected packages

EcosystemPackageAffectedFixedRecord
Packagist phenx/php-svg-lib < 0.5.1 0.5.1 GHSA-ff5x-7qg5-vwf2

Advisories 1

References