CVE-2023-50252 in the critical feed json
php-svg-lib unsafe attributes merge when parsing `use` tag
published 2023-12-12 2 y ago modified 2026-06-17 4 mo ago also EUVD-2023-55067
- cvss
- 8.3
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 23.9%
- EPSS 23.9% chance of exploitation in 30 days, percentile 97%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- dompdf php-svg-lib 0.5.1
- php-dompdf-svg-lib Debian 12 0.5.0-3+deb12u1
debian advisories DEBIAN-CVE-2023-50252
Exploit prediction
23.90% chance of exploitation in the next 30 days, higher than 97% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/dompdf/php-svg-lib/security/advisories/GHSA-jq98-9543-m4cr referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 8.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L |
| NVD | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected products
- dompdf php-svg-lib
Classification
References
-
github.com
/dompdf/php-svg-lib/commit/08ce6a96d63ad7216315fae34a61c886dd2dc030
patch
-
github.com
/dompdf/php-svg-lib/security/advisories/GHSA-jq98-9543-m4cr
exploit, mitigation, vendor-advisory
Sources
- CVE List CVE-2023-50252
- NVD CVE-2023-50252
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.