# CVE-2023-50252: php-svg-lib unsafe attributes merge when parsing `use` tag

- Severity: High 8.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 24.8%, higher than 97% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2023-12-12T20:39:17.905Z
- Modified: 2026-06-17T06:39:23.213Z
- Weaknesses: CWE-15, CWE-502
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- dompdf php-svg-lib: < 0.5.1; before 0.5.1

## Every score

- GitHub_M: CVSS:3.1 8.3 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/dompdf/php-svg-lib/security/advisories/GHSA-jq98-9543-m4cr> (exploit, mitigation, vendor-advisory)
- <https://github.com/dompdf/php-svg-lib/commit/08ce6a96d63ad7216315fae34a61c886dd2dc030> (patch)

## Sources

- CVE List: [CVE-2023-50252](https://www.cve.org/CVERecord?id=CVE-2023-50252), CVE Terms of Use, modified 2024-08-02
- NVD: [CVE-2023-50252](https://nvd.nist.gov/vuln/detail/CVE-2023-50252), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-50252 · Whole record: https://cve.day/CVE-2023-50252.json · Rebuilt by cve.day 2026-11-25T22:58:31.265Z
