Skip to main content
← All vulnerabilities
CVE-2023-50251GHSA-FF5X-7QG5-VWF2

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

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 0.5.1
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: yes
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: yes · Technical impact: partial

  3. Record last updated

Affected versions

  • dompdf php-svg-lib

    fixed in 0.5.1

  • phenx/php-svg-libPackagist

    fixed in 0.5.1

References 2

GitHub · dompdf/php-svg-lib