{"id":"CVE-2023-50252","published":"2023-12-12T20:39:17Z","modified":"2024-08-02T22:16:46Z","title":"php-svg-lib unsafe attributes merge when parsing `use` tag","vendor":"dompdf","product":"php-svg-lib","tier":"tail","description":{"text":"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. ","provenance":"source","from":"CVE.org"},"cvss":{"score":8.3,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.24768,"percentile":0.97949,"provenance":"source"},"cwes":[{"id":"CWE-15","name":"External Control of System or Configuration Setting"},{"id":"CWE-502","name":"Deserialization of Untrusted Data"}],"references":[{"url":"https://github.com/dompdf/php-svg-lib/security/advisories/GHSA-jq98-9543-m4cr","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/dompdf/php-svg-lib/commit/08ce6a96d63ad7216315fae34a61c886dd2dc030","tags":["x_refsource_MISC"]}],"priority":{"score":25.4,"factors":[{"name":"EPSS percentile","points":19.59},{"name":"CVSS severity","points":5.81}]},"vendorSlug":"dompdf","affectedVersions":[{"vendor":"dompdf","product":"php-svg-lib","versions":["< 0.5.1"]}],"summary":{"text":"The php-svg-lib SVG parsing and rendering library, prior to version 0.5.1, merges attributes from a <use> tag into a referenced <image> tag without sanitizing the href attribute. This can lead to an unsafe file read that enables PHAR deserialization in PHP versions before 8. An attacker with network access can exploit this without authentication or user interaction by supplying a crafted SVG file that a vulnerable deployment parses. Successful exploitation depends on the library processing attacker-supplied SVG content, with the PHP runtime being a version prior to 8.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:33:41Z"},"euvd":{"id":"EUVD-2023-55067","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-dompdf-php-svg-lib-cve-2023-50251","parents":[{"from":"CVE-2023-50251","to":"CVE-2023-50252","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/Svg/Tag/UseTag.php"],"commits":["https://github.com/dompdf/php-svg-lib/commit/88163cbe562d9b391b3a352e54d9c89d02d77ee0","https://github.com/dompdf/php-svg-lib/commit/08ce6a96d63ad7216315fae34a61c886dd2dc030"],"basis":"shared function","functions":["handle"]}]}]}}