CVE-2023-50251 php-svg-lib possible DoS caused by infinite recursion when parsing SVG document
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: yes · technical impact: partial
- Technology
- PHPDebian
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.
Upgrade path
3 packages: 3 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/php-dompdf-svg-lib(Debian 12) | < 0.5.0-3+deb12u1; = 0.5.0-3 | 0.5.0-3+deb12u1 | Fixed |
| dompdf php-svg-lib | < 0.5.1; = < 0.5.1 | 0.5.1 | Fixed |
| phenx/php-svg-lib(Packagist) | < 0.5.1; = 0.1; = 0.3.4; = 0.4.0 +7 more | 0.5.1 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| phenx/php-svg-lib(Packagist) | < 0.5.1 | 0.5.1 |
| phenx/php-svg-lib(Packagist) | = 0.1 | No fix listed |
| phenx/php-svg-lib(Packagist) | = 0.3.4 | No fix listed |
| phenx/php-svg-lib(Packagist) | = 0.4.0 | No fix listed |
| phenx/php-svg-lib(Packagist) | = 0.4.1 | No fix listed |
| phenx/php-svg-lib(Packagist) | = 0.5.0 | No fix listed |
| phenx/php-svg-lib(Packagist) | = v0.2 | No fix listed |
| phenx/php-svg-lib(Packagist) | = v0.3.0 | No fix listed |
| phenx/php-svg-lib(Packagist) | = v0.3.1 | No fix listed |
| phenx/php-svg-lib(Packagist) | = v0.3.2 | No fix listed |
| phenx/php-svg-lib(Packagist) | = v0.3.3 | No fix listed |
| debian/php-dompdf-svg-lib(Debian:12) | < 0.5.0-3+deb12u1 | 0.5.0-3+deb12u1 |
| debian/php-dompdf-svg-lib(Debian:12) | = 0.5.0-3 | No fix listed |
| dompdf php-svg-lib | = < 0.5.1 | No fix listed |
| dompdf php-svg-lib | < 0.5.1 | 0.5.1 |
References
- https://github.com/dompdf/php-svg-lib/security/advisories/GHSA-ff5x-7qg5-vwf2 exploit vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/dompdf/php-svg-lib/commit/88163cbe562d9b391b3a352e54d9c89d02d77ee0 patch
- github.com product
- Debian Security Tracker CVE-2023-50251 vendor-advisory
- bugs.debian.org issue-tracking
- github.com