CVE-2023-50251

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

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.

Category

5.3
CVSS
Severity: Medium
CVSS 3.1 •
EPSS 0.16%
Vendor Advisory github.com
Affected: dompdf php-svg-lib
Published at:
Updated at:

References

Frequently Asked Questions

What is the severity of CVE-2023-50251?
CVE-2023-50251 has been scored as a medium severity vulnerability.
How to fix CVE-2023-50251?
To fix CVE-2023-50251, make sure you are using an up-to-date version of the affected component(s) by checking the vendor release notes. As for now, there are no other specific guidelines available.
Is CVE-2023-50251 being actively exploited in the wild?
It is possible that CVE-2023-50251 is being exploited or will be exploited in a near future based on public information. According to its EPSS score, there is a ~0% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
What software or system is affected by CVE-2023-50251?
CVE-2023-50251 affects dompdf php-svg-lib.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.