CVE-2026-132275 svglib: Exponential resource consumption via nested <use> references in svg2rlg
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: yes · technical impact: partial
- Technology
- UbuntuDebian
Description
svglib reads SVG files and converts them to other formats. Prior to 2.3.1, the svg2rlg() renderer recursively expands nested SVG <use> 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.
Upgrade path
9 packages: 1 fixed, 7 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/python-svglib(Debian 12) | = 1.4.1+dfsg-1; = 1.5.1+dfsg-1; All versions | No fix listed | No fix yet |
| debian/python-svglib(Debian 13) | = 1.5.1+dfsg-1; All versions | No fix listed | No fix yet |
| debian/python-svglib(Debian 14) | = 1.5.1+dfsg-1; All versions | No fix listed | No fix yet |
| ubuntu/python-svglib(Ubuntu 22.04) | All versions | No fix listed | No fix yet |
| ubuntu/python-svglib(Ubuntu 24.04) | All versions | No fix listed | No fix yet |
| ubuntu/python-svglib(Ubuntu 26.04) | All versions | No fix listed | No fix yet |
| ubuntu/python-svglib(Ubuntu 26.10) | All versions | No fix listed | No fix yet |
| pypi svglib(PyPI) | < 2.3.1; <= 2.3.0; = 0.6.0; = 0.6.1 +28 more | 2.3.1 | Fixed |
| deeplook svglib | = < 2.3.1 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| deeplook svglib | = < 2.3.1 | No fix listed |
| pypi svglib(PyPI) | <= 2.3.0 | No fix listed |
| pypi svglib(PyPI) | < 2.3.1 | 2.3.1 |
| pypi svglib(PyPI) | = 0.6.0 | No fix listed |
| pypi svglib(PyPI) | = 0.6.1 | No fix listed |
| pypi svglib(PyPI) | = 0.6.2 | No fix listed |
| pypi svglib(PyPI) | = 0.6.3 | No fix listed |
| pypi svglib(PyPI) | = 0.8.0 | No fix listed |
| pypi svglib(PyPI) | = 0.8.1 | No fix listed |
| pypi svglib(PyPI) | = 0.9.0 | No fix listed |
| pypi svglib(PyPI) | = 0.9.0b0 | No fix listed |
| pypi svglib(PyPI) | = 0.9.1 | No fix listed |
| pypi svglib(PyPI) | = 0.9.2 | No fix listed |
| pypi svglib(PyPI) | = 0.9.3 | No fix listed |
| pypi svglib(PyPI) | = 0.9.4 | No fix listed |
| pypi svglib(PyPI) | = 1.0.0 | No fix listed |
| pypi svglib(PyPI) | = 1.0.1 | No fix listed |
| pypi svglib(PyPI) | = 1.1.0 | No fix listed |
| pypi svglib(PyPI) | = 1.2.0 | No fix listed |
| pypi svglib(PyPI) | = 1.2.1 | No fix listed |
| pypi svglib(PyPI) | = 1.3.0 | No fix listed |
| pypi svglib(PyPI) | = 1.4.0 | No fix listed |
| pypi svglib(PyPI) | = 1.4.1 | No fix listed |
| pypi svglib(PyPI) | = 1.5.0 | No fix listed |
| pypi svglib(PyPI) | = 1.5.1 | No fix listed |
Show 19 more
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi svglib(PyPI) | = 1.6.0 | No fix listed |
| pypi svglib(PyPI) | = 2.0.0 | No fix listed |
| pypi svglib(PyPI) | = 2.0.1 | No fix listed |
| pypi svglib(PyPI) | = 2.0.2 | No fix listed |
| pypi svglib(PyPI) | = 2.0b1 | No fix listed |
| pypi svglib(PyPI) | = 2.1.0 | No fix listed |
| pypi svglib(PyPI) | = 2.2.0 | No fix listed |
| pypi svglib(PyPI) | = 2.3.0 | No fix listed |
| debian/python-svglib(Debian:12) | All versions | No fix listed |
| debian/python-svglib(Debian:12) | = 1.4.1+dfsg-1 | No fix listed |
| debian/python-svglib(Debian:12) | = 1.5.1+dfsg-1 | No fix listed |
| debian/python-svglib(Debian:13) | All versions | No fix listed |
| debian/python-svglib(Debian:13) | = 1.5.1+dfsg-1 | No fix listed |
| debian/python-svglib(Debian:14) | All versions | No fix listed |
| debian/python-svglib(Debian:14) | = 1.5.1+dfsg-1 | No fix listed |
| ubuntu/python-svglib(Ubuntu:22.04) | All versions | No fix listed |
| ubuntu/python-svglib(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/python-svglib(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/python-svglib(Ubuntu:26.10) | All versions | No fix listed |
References
- https://github.com/deeplook/svglib/security/advisories/GHSA-555j-qj3j-c8jv exploit vendor-advisory
- https://github.com/deeplook/svglib/commit/7380d3c3836940fd75f8e203fff80077b7d5a425 patch
- https://github.com/deeplook/svglib/releases/tag/v2.3.1
- ENISA EUVD EUVD-2026-131677 third-party-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com
- github.com product
- Debian Security Tracker CVE-2026-132275 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- www.cve.org
- bugs.debian.org issue-tracking