CVE-2023-50251: php-svg-lib is an SVG file parsing / rendering library
CVE-2023-50251 is a medium-severity flaw (CVSS 5.3) affecting php-svg-lib. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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
Why this priority
- Public exploit reference
- Remotely exploitable, no login, no user action
A fixed release or distro patch exists.
Risk facts
| CVSS score | 5.3 (Medium) |
| Attack vector | Network (remote) |
| Attack complexity | Low |
| Privileges needed | None |
| User interaction | None |
| EPSS exploit chance | 0.9% (top 41%) |
| CISA exploited list | No |
| Weakness | CWE-674 |
| Published | 2023-12-12 |
| Last modified | 2026-06-17 |
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2023-50251?
php-svg-lib: upgrade to 0.5.1. Exact commands for each OS are on this page.
Is CVE-2023-50251 being exploited?
CVE-2023-50251 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2023-50251 affect?
CVE-2023-50251 affects php-svg-lib. Severity is medium (CVSS 5.3). 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 syst
How urgent is CVE-2023-50251?
Priority 43/100. Public exploit reference; Remotely exploitable, no login, no user action
Software pages
Related CVEs
- CVE-2024-25117 MEDIUM 6.8 UPGRADE php-svg-lib is a scalable vector graphics (SVG) file parsing/rendering library
- CVE-2023-50252 HIGH 8.3 UPGRADE php-svg-lib is an SVG file parsing / rendering library