CVE-2023-50252

Public Exploit
php-svg-lib unsafe attributes merge when parsing `use` tag

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.

Category

8.3
CVSS
Severity: High
CVSS 3.1 •
EPSS 9.38% Top 10%
Vendor Advisory github.com
Affected: dompdf php-svg-lib
Published at:
Updated at:

References

Frequently Asked Questions

What is the severity of CVE-2023-50252?
CVE-2023-50252 has been scored as a high severity vulnerability.
How to fix CVE-2023-50252?
To fix CVE-2023-50252, make sure you are using an up-to-date version of the affected component(s) by checking the vendor release notes. As for now, there are no other specific guidelines available.
Is CVE-2023-50252 being actively exploited in the wild?
It is possible that CVE-2023-50252 is being exploited or will be exploited in a near future based on public information. According to its EPSS score, there is a ~9% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
What software or system is affected by CVE-2023-50252?
CVE-2023-50252 affects dompdf php-svg-lib.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.