CVE-2026-132275
published high CVSS 3.1 · 7.5svglib: Exponential resource consumption via nested <use> references in svg2rlg
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| deeplook | — | svglib< 2.3.1 | Affected | Not stated | GitHub_M |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-svglibaarch64 | Advisory build | 2.4.0-1.1 | OPENSUSE-SU-2026:12699-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-svglibppc64le | Advisory build | 2.4.0-1.1 | OPENSUSE-SU-2026:12699-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-svglibs390x | Advisory build | 2.4.0-1.1 | OPENSUSE-SU-2026:12699-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-svglibx86_64 | Advisory build | 2.4.0-1.1 | OPENSUSE-SU-2026:12699-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-svglibaarch64 | Advisory build | 2.4.0-1.1 | OPENSUSE-SU-2026:12699-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-svglibppc64le | Advisory build | 2.4.0-1.1 | OPENSUSE-SU-2026:12699-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-svglibs390x | Advisory build | 2.4.0-1.1 | OPENSUSE-SU-2026:12699-1 |
Show 1 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-svglibx86_64 | Advisory build | 2.4.0-1.1 | OPENSUSE-SU-2026:12699-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.5 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| deeplook | svglib | < 2.3.1 (affected) | GitHub_M · cna |
Weaknesses
2- CWE-400 CWE-400: Uncontrolled Resource Consumption
- CWE-776 CWE-776: Improper Restriction of Recursive Entity References in DTDs
References
3Provider assertions
2GitHub_M · cna
svglib: Exponential resource consumption via nested <use> references in svg2rlg
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 8f31f0aefe3ed7dcaf93dc82741fe3b72114c2c422580fb104c6a3b9abd035ec
- Ingested
- 20 Nov 2026, 19:03:57 UTC
- Source record
- Official CVE record