{"id":"UBUNTU-CVE-2026-132275","details":"svglib reads SVG files and converts them to other formats. Prior to 2.3.1, the svg2rlg() renderer recursively expands nested SVG \u003cuse\u003e references by deep-copying each referenced subtree; SvgRenderer.renderUse() in src/svglib/svglib.py calls xlink_href_target(), which rejects direct cycles but permits acyclic reference graphs with repeated fan-out. A small attacker-controlled SVG can therefore trigger exponentially increasing node expansion, consuming excessive CPU and memory in any application that renders it without a non-default option; HTML-to-PDF workflows using xhtml2pdf can reach the same renderer when an embedded data:image/svg+xml image in an HTML img element is passed to pisa.CreatePDF(). This issue is fixed in 2.3.1.","modified":"2026-11-25T17:45:50Z","published":"2026-11-20T17:18:00Z","upstream":["CVE-2026-132275"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2026-132275"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2026-132275"},{"type":"REPORT","url":"https://github.com/deeplook/svglib/commit/7380d3c3836940fd75f8e203fff80077b7d5a425"},{"type":"REPORT","url":"https://github.com/deeplook/svglib/releases/tag/v2.3.1"},{"type":"REPORT","url":"https://github.com/deeplook/svglib/security/advisories/GHSA-555j-qj3j-c8jv"}],"affected":[{"package":{"name":"python-svglib","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/python-svglib?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.1.0+dfsg-2","1.1.0+dfsg-3","1.2.0+dfsg-1"],"ecosystem_specific":{"binaries":[{"binary_version":"1.2.0+dfsg-1","binary_name":"python3-svglib"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-132275.json"}},{"package":{"name":"python-svglib","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/python-svglib?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.4.1+dfsg-1"],"ecosystem_specific":{"binaries":[{"binary_name":"python3-svglib","binary_version":"1.4.1+dfsg-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-132275.json"}},{"package":{"name":"python-svglib","ecosystem":"Ubuntu:26.10","purl":"pkg:deb/ubuntu/python-svglib?arch=source&distro=stonking"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.5.1+dfsg-1"],"ecosystem_specific":{"binaries":[{"binary_version":"1.5.1+dfsg-1","binary_name":"python3-svglib"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-132275.json"}},{"package":{"name":"python-svglib","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/python-svglib?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.5.1+dfsg-1"],"ecosystem_specific":{"binaries":[{"binary_name":"python3-svglib","binary_version":"1.5.1+dfsg-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-132275.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","source":"CNA"},{"type":"Ubuntu","score":"medium","source":"SELF"}]}