CVE-2023-50251
PHP vulnerability analysis and mitigation

Overview

php-svg-lib, an SVG file parsing and rendering library, was found to contain a vulnerability (CVE-2023-50251) prior to version 0.5.1. The vulnerability was discovered and disclosed on December 12, 2023, affecting all versions up to and excluding version 0.5.1. The issue lies in the parsing of attributes passed to a use tag inside an SVG document (GitHub Advisory).

Technical details

The vulnerability stems from an infinite recursion issue when parsing attributes passed to a use tag inside an SVG document. When the library finds a href or xlink:href attribute, it attempts to retrieve the object representing this tag. If the id attribute equals the link attribute inside the use tag, the referenced object (Use tag object) will be called recursively. This vulnerability has been assigned a CVSS v3.1 base score of 7.5 (HIGH) by NIST and 5.3 (MEDIUM) by GitHub, with a vector string of CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L. The weakness is categorized as CWE-674 (Uncontrolled Recursion) (NVD, GitHub Advisory).

Impact

The exploitation of this vulnerability can lead to resource exhaustion, potentially causing the system to become unable to handle incoming requests. When triggered, the vulnerability can exhaust the memory available to the executing process and/or the server itself. An attacker sending multiple requests to render a malicious payload can cause denial of service conditions (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in version 0.5.1 of php-svg-lib. Users are advised to upgrade to this version or later to address the security issue. The fix prevents circular references in use elements through the implementation of instance tracking (GitHub Patch).

Additional resources


SourceThis report was generated using AI

Related PHP vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-23622HIGH8.7
  • PHPPHP
  • alextselegidis/easyappointments
NoNoJan 15, 2026
CVE-2025-14894HIGH7.5
  • PHPPHP
  • livewire-filemanager/filemanager
NoNoJan 16, 2026
CVE-2026-23626MEDIUM6.8
  • PHPPHP
  • kimai/kimai
NoYesJan 18, 2026
CVE-2025-69198MEDIUM6
  • PHPPHP
  • pterodactyl/panel
NoYesJan 19, 2026
CVE-2026-23496MEDIUM5.4
  • PHPPHP
  • pimcore/web2print-tools-bundle
NoYesJan 15, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management