{"id":"CVE-2023-50251","published":"2023-12-12T20:37:23Z","modified":"2025-05-22T18:38:53Z","title":"php-svg-lib possible DoS caused by infinite recursion when parsing SVG document","vendor":"dompdf","product":"php-svg-lib","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00939,"percentile":0.59337,"provenance":"source"},"cwes":[{"id":"CWE-674","name":"Uncontrolled Recursion"}],"references":[{"url":"https://github.com/dompdf/php-svg-lib/security/advisories/GHSA-ff5x-7qg5-vwf2","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/dompdf/php-svg-lib/commit/88163cbe562d9b391b3a352e54d9c89d02d77ee0","tags":["x_refsource_MISC"]}],"priority":{"score":15.6,"factors":[{"name":"EPSS percentile","points":11.87},{"name":"CVSS severity","points":3.71}]},"vendorSlug":"dompdf","affectedVersions":[{"vendor":"dompdf","product":"php-svg-lib","versions":["< 0.5.1"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2025-05-22T18:38:09.177526Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"phenx/php-svg-lib","vulnerableRanges":["<0.5.1"],"patched":["0.5.1"],"from":["GHSA-ff5x-7qg5-vwf2"],"provenance":"source"}],"summary":{"text":"The php-svg-lib library, an SVG parsing and rendering component from dompdf, contains a flaw in how it handles attributes passed to a use tag within an SVG document, which can cause uncontrolled recursion. An attacker with network access and no authentication or user interaction can send crafted SVG content for rendering, causing infinite recursion that can exhaust process or server memory and, when repeated, make the system unable to handle incoming requests.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:31:01Z"},"euvd":{"id":"EUVD-2023-3195","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-dompdf-php-svg-lib-cve-2023-50251","children":[{"from":"CVE-2023-50251","to":"CVE-2023-50252","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/Svg/Tag/UseTag.php"],"commits":["https://github.com/dompdf/php-svg-lib/commit/88163cbe562d9b391b3a352e54d9c89d02d77ee0","https://github.com/dompdf/php-svg-lib/commit/08ce6a96d63ad7216315fae34a61c886dd2dc030"],"basis":"shared function","functions":["handle"]}]}],"packageHistory":[{"cve":"CVE-2023-50251","published":"2023-12-12","fixed":"0.5.1","kev":false},{"cve":"CVE-2024-25117","published":"2024-02-21","fixed":"0.5.2","kev":false,"link":{"from":"CVE-2023-50251","to":"CVE-2024-25117","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:phenx/php-svg-lib","fromFixed":"0.5.1","toFixed":"0.5.2","daysApart":71}]}}],"package":"Packagist:phenx/php-svg-lib"}}