CVE-2023-50251

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

Published Dec 12, 2023 CVSS 3.1 · 5.3 Medium EPSS < 1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DSA Debian DSA DSA-5642-1 php-dompdf-svg-lib security update
EUVD EUVD EUVD-2023-3195 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.
Github GHSA Github GHSA GHSA-ff5x-7qg5-vwf2 Denial of service caused by infinite recursion when parsing SVG document
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
May 22, 2025, 6:38 PM
Reserved
Dec 5, 2023, 8:42 PM
Status
Modified
Published
Dec 12, 2023, 9:15 PM
Modified
Jun 17, 2026, 6:39 AM