CVE-2023-50252 in Dompdf Php-Svg-Lib
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 ca...
Affects 1 product from 1 vendor. Facts below cite their sources.
Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Dompdf | Php-Svg-Lib | < 0.5.1 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Vendor PSIRT: [email protected]
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official 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.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2023-50252 |
|---|---|
| BreachSpider ID | BS-2023-GLOBAL-173600-C |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| Published | 2023-12-12 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-15: CWE-15
CWE-502: Deserialization of Untrusted Data
Software deserializes untrusted data without validation, allowing crafted objects to execute arbitrary code.
Related attack patterns (CAPEC)
CAPEC-13 Subverting Environment Variable Values via CWE-15
CAPEC-76 Manipulating Web Input to File System Calls via CWE-15
CAPEC-146 XML Schema Poisoning via CWE-15
CAPEC-270 Modification of Registry Run Keys via CWE-15
CAPEC-579 Replace Winlogon Helper DLL via CWE-15
Show all 11
CAPEC-69 Target Programs with Elevated Privileges via CWE-15
CAPEC-77 Manipulating User-Controlled Variables via CWE-15
CAPEC-203 Manipulate Registry Information via CWE-15
CAPEC-271 Schema Poisoning via CWE-15
CAPEC-176 Configuration/Environment Manipulation via CWE-15
CAPEC-586 Object Injection via CWE-502
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
CVE-2023-50252 affects php-svg-lib versions prior to 0.5.1, where unsanitized `href` attributes in `<use>` tags can lead to unsafe file reads and PHAR Deserialization vulnerabilities.
An attacker can craft an SVG file with a `<use>` tag referencing an `<image>` tag, using an unsanitized `href` attribute to point to a malicious PHAR file. This can lead to arbitrary code execution on the server.
Questions
What is CVE-2023-50252?
CVE-2023-50252 affects php-svg-lib versions prior to 0.5.1, where unsanitized `href` attributes in `<use>` tags can lead to unsafe file reads and PHAR Deserialization vulnerabilities.
What is the CVSS score for CVE-2023-50252?
CVE-2023-50252 has CVSS 9.8 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H. EPSS: 1.0%.
Is CVE-2023-50252 actively exploited?
No confirmed active exploitation of CVE-2023-50252 as of 2026-09-25.
How do I remediate CVE-2023-50252?
Priority: IMMEDIATE. PSIRT: [email protected]
What systems are affected by CVE-2023-50252?
CVE-2023-50252 affects Dompdf Php-Svg-Lib.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Dompdf","product":"Php-Svg-Lib","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.