CVE-2023-50252
criticalpriority · attend · 47EPSS 0.239 · 98 %ileEUUSEPSS · scored 2026-10-27
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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · high–critical · 8.3–9.8
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (2)
Products and version ranges known to be affected.
also known as (2)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (8)
External citations — patches, advisories, analysis.
- https://cxsecurity.com/cveshow/CVE-2023-50252/cnnvd
- https://github.com/dompdf/php-svg-lib/commit/08ce6a96d63ad7216315fae34a61c886dd2dc030cnnvd
- https://github.com/dompdf/php-svg-lib/security/advisories/GHSA-jq98-9543-m4crcnnvd
- https://vigilance.fr/vulnerability/php-svg-lib-two-vulnerabilities-dated-20-03-2024-43834cnnvd
- https://github.com/dompdf/php-svg-lib/commit/08ce6a96d63ad7216315fae34a61c886dd2dc030enisa_euvd
- https://github.com/dompdf/php-svg-lib/security/advisories/GHSA-jq98-9543-m4crenisa_euvd
- https://github.com/dompdf/php-svg-lib/commit/08ce6a96d63ad7216315fae34a61c886dd2dc030Patchnvd
- https://github.com/dompdf/php-svg-lib/security/advisories/GHSA-jq98-9543-m4crExploitMitigationVendor Advisorynvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan