Critical severity · published Dec 12, 2023
CVE-2023-50252
php-svg-lib unsafe attributes merge when parsing `use` tag
9.8
CVSS
23.9%
EPSS
No
On KEV
Description
php-svg-lib is an SVG file parsing / rendering library. Prior to version 0.5.1, when handling `<use>` tag that references an `<image>` tag, it merges the attributes from the `<use>` tag to the `<image>` tag. The problem pops up especially when the `href` attribute from the `<use>` tag has not been sanitized. This can lead to an unsafe file read that can cause PHAR Deserialization vulnerability in PHP prior to version 8. Version 0.5.1 contains a patch for this issue.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Confidentiality
High
Integrity
High
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)23.9% · higher than 98% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
PH
php-svg-lib · dompdf
< 0.5.1 · source: vendor, NVD
Affected product
PH
php-svg-lib
dompdf
More from php-svg-lib
9.8
CVE-2024-25117
php-svg-lib lacks path validation on font through SVG inline styles
7.5
CVE-2023-50251
php-svg-lib possible DoS caused by infinite recursion when parsing SVG document