Potential Remote Code Execution Vulnerability in php-svg-lib Prior to Version 0.5.2
CVE-2024-25117
9.8CRITICAL
What is CVE-2024-25117?
The php-svg-lib library, used for parsing and rendering SVG files, has a vulnerability that allows for remote code execution due to improper validation of the font-family attribute. Specifically, versions prior to 0.5.2 do not check for the inclusion of PHAR URLs. This oversight can lead to unacceptable code execution risks on PHP versions below 8.0, particularly if the library is utilized without thorough checks by developers. Proper validation should be implemented to reject unsafe font-family values and prevent potentially malicious inputs from being processed by other libraries.
Affected Version(s)
php-svg-lib < 0.5.2