CVE-2023-50252
published high CVSS 3.1 · 8.3php-svg-lib unsafe attributes merge when parsing `use` tag
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| dompdf | — | php-svg-lib< 0.5.1 | Affected | Not stated | GitHub_M |
| Debian | bookworm | php-dompdf-svg-lib | Advisory build | 0.5.0-3+deb12u1 | DSA-5642-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 8.3 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| dompdf | php-svg-lib | < 0.5.1 (affected) | GitHub_M · cna |
Weaknesses
2- CWE-15 CWE-15: External Control of System or Configuration Setting
- CWE-502 CWE-502: Deserialization of Untrusted Data
References
2Provider assertions
2GitHub_M · cna
php-svg-lib unsafe attributes merge when parsing `use` tag
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 263bcfd1d2ad4d250f2be4a1cd37ca5ad0742f1ac19e6a6288ef391120ab18ea
- Ingested
- 23 Sep 2026, 08:13:59 UTC
- Source record
- Official CVE record