Skip to content

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

HighCVSS 7.5 EPSS 0.88%
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.

PackageAffectedFixed inStatus
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

ProductAffected versionsFixed 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