php-svg-lib unsafe attributes merge when parsing `use` tag
CVE-2023-50252
8.3HIGH
What is CVE-2023-50252?
The php-svg-lib library prior to version 0.5.1 contains a vulnerability related to the improper handling of the <use>
tag referencing an <image>
tag. Specifically, the attributes from the <use>
tag can be merged into the <image>
tag without proper sanitization of the href
attribute. This can potentially lead to unsafe file reads and exploitation through PHAR Deserialization in PHP versions prior to 8. Version 0.5.1 has addressed this issue with a security patch.
Affected Version(s)
php-svg-lib < 0.5.1