{"id":"CVE-2023-50252","aliases":["CVE-2023-50252"],"related":[],"kind":"vulnerability","state":"published","title":"php-svg-lib unsafe attributes merge when parsing `use` tag","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"php-svg-lib es una librería de análisis/representación de archivos SVG. Antes de la versión 0.5.1, cuando se maneja la etiqueta `` que hace referencia a una etiqueta ``, se fusionan los atributos de la etiqueta `` con la etiqueta ``. El problema surge especialmente cuando el atributo `href` de la etiqueta `` no ha sido sanitizado. Esto puede provocar una lectura de archivo insegura que puede causar una vulnerabilidad de deserialización PHAR en PHP anterior a la versión 8. La versión 0.5.1 contiene un parche para este problema.","source":"nvd"}],"published":"2023-12-12T20:39:17.905Z","modified":"2026-06-17T06:39:23.213Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L","score":8.3,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L","score":8.3,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"}],"cwes":["CWE-15","CWE-502"],"affected":[{"ranges":[{"version":"< 0.5.1","status":"affected"}],"vendor":"dompdf","product":"php-svg-lib","source":"cvelist"},{"ranges":[{"status":"affected","fixed":"0.5.1"}],"vendor":"dompdf","product":"php-svg-lib","cpe":"cpe:2.3:a:dompdf:php-svg-lib:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/dompdf/php-svg-lib/security/advisories/GHSA-jq98-9543-m4cr","tags":["exploit","mitigation","vendor-advisory","x-refsource-confirm","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://github.com/dompdf/php-svg-lib/commit/08ce6a96d63ad7216315fae34a61c886dd2dc030","tags":["patch","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"GitHub_M","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-50252","url":"https://www.cve.org/CVERecord?id=CVE-2023-50252","licence":"CVE Terms of Use","modified":"2024-08-02T22:16:46.251Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-50252","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-50252","licence":"Public domain","modified":"2026-06-17T06:39:23.213Z"}],"updatedAt":"2026-11-25T22:58:31.265Z","epss":{"score":0.24768,"percentile":0.9794,"date":"2026-12-01T12:00:22.000Z"}}