Potential Remote Code Execution Vulnerability in php-svg-lib Prior to Version 0.5.2
CVE-2024-25117

9.8CRITICAL

Key Information:

Vendor

dompdf

Vendor
CVE Published:
21 February 2024

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

References

CVSS V3.1

Score:
9.8
Severity:
CRITICAL
Confidentiality:
High
Integrity:
High
Availability:
High
Attack Vector:
Network
Attack Complexity:
Low
Privileges Required:
None
User Interaction:
None
Scope:
Unchanged

Timeline

  • Vulnerability published

  • Vulnerability Reserved

.
CVE-2024-25117 : Potential Remote Code Execution Vulnerability in php-svg-lib Prior to Version 0.5.2