p PatchFirst

CVE-2023-50251

CVE-2023-50251 · php-svg-lib possible DoS caused by infinite recursion when parsing SVG document

This page contains facts from public vulnerability sources. Check the original advisory before updating.

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.

CVSS 5.3 · Medium · EPSS 0.9% · Fix available

Published
Updated

Stack: system · php

Affected products and versions

  • php-svg-lib

    Versions
    • < 0.5.1: Affected

    No fix published

  • php-dompdf-svg-lib Debian:12

    Versions
    • 0.5.0-3
    Affected ranges
    • ECOSYSTEM: < 0.5.0-3+deb12u1

    Update to 0.5.0-3+deb12u1

  • phenx/php-svg-lib Packagist

    Versions
    • 0.1
    • 0.3.4
    • 0.4.0
    • 0.4.1
    • 0.5.0
    • v0.2
    • v0.3.0
    • v0.3.1
    • v0.3.2
    • v0.3.3
    Affected ranges
    • ECOSYSTEM: < 0.5.1

    Update to 0.5.1

Original sources

Check your server →