CVE-2023-50252PHP-Svg-Lib Insecure Deserialization
Prior to version 0.5.1, when handling tag that references an tag, it merges the attributes from the tag to the tag.
Published Dec 12, 2023 · Updated Oct 28, 2026 · Also known as DEBIAN-CVE-2023-50252, GHSA-jq98-9543-m4cr
Key Facts
Patch in the next maintenance window- CVE-2023-50252 is a critical-severity vulnerability (CVSS 9.8 v3.1) affecting PHP-Svg-Lib (Dompdf), php-dompdf-svg-lib (debian).
- It is not listed in any known-exploited vulnerabilities catalog. No public exploit code is known.
- EPSS estimates a 25% probability of exploitation in the next 30 days.
- Fixed versions are available, including PHP-Svg-Lib 0.5.1, php-dompdf-svg-lib 0.5.0-3+deb12u1, php-dompdf-svg-lib 0.5.1-1.
- Brandefense priority: patch in the next maintenance window, because of its high severity, although no exploitation is known.
Scores
CVSS v3.1
9.8
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS (30-day exploit likelihood)
25%
Higher than 97.9% of all scored CVEs
Exploit maturity
Proof of concept
ATLAS score
41/100
Publication score, see How it works
Exploitation Verdict
KEV listed
Not listed
Federal due date
None
No federal due date
Ransomware use
Not reported
Attributed actors
None named
Exploit & Defence Guidance
Exploit maturity
Proof of concept
Public exploit code
1
Proof-of-concept links
In-the-wild evidence
0
Reports of active use
Advisories And Exploit References
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.
Affected Products
7 affected entries in total| Product | Affected versions | Fixed in |
|---|---|---|
| PHP-Svg-LibDompdf | < 0.5.1 | 0.5.1 |
| php-dompdf-svg-libdebian | See advisory | 0.5.0-3+deb12u1 |
Patched Releases
PHP-Svg-Lib
0.5.1
php-dompdf-svg-lib
0.5.0-3+deb12u1, 0.5.1-1
Timeline
Publicly disclosed
Dec 12, 2023
Last updated
Oct 28, 2026
Weakness Type
- CWE-15 External Control of System or Configuration Setting
- CWE-502 Deserialization of Untrusted Data
References
FAQ
Common Questions.
php-svg-lib is an SVG file parsing / rendering library.
Affected: PHP-Svg-Lib (Dompdf) versions < 0.5.1; php-dompdf-svg-lib (debian). The full list is in the CVE brief.
It is not listed in any known-exploited vulnerabilities catalog.
No, it is not currently listed in the CISA Known Exploited Vulnerabilities catalog.
No public exploit code is known.
Fixed versions are available, including PHP-Svg-Lib 0.5.1, php-dompdf-svg-lib 0.5.0-3+deb12u1, php-dompdf-svg-lib 0.5.1-1.
Brandefense priority: patch in the next maintenance window, because of its high severity, although no exploitation is known.
Is CVE-2023-50252 On Your Attack Surface?
Brandefense matches it against the products discovered on your perimeter and opens a finding the day a CVE like this is listed.
Request A Demo