Vulnerability · Published Dec 12, 2023 · Assigned by GitHub_M
CVE-2023-50251php-svg-lib possible DoS caused by infinite recursion when parsing SVG document
Medium 5.3
In plain English
A medium-severity security flaw in php-svg-lib from dompdf. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.9% (higher than 59% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | php-dompdf-svg-lib | 0.5.0-3+deb12u1 | DEBIAN-CVE-2023-50251 |
| Debian:12 | php-dompdf-svg-lib | 0.5.0-3+deb12u1 | DSA-5642-1 |
| Packagist | phenx/php-svg-lib | 0.5.1 | GHSA-ff5x-7qg5-vwf2 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| dompdf | php-svg-lib | < 0.5.1 |
Weakness: CWE-674 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L