Exponential resource consumption in svglib via nested use references
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Partial Red Hat: 2 without a fix
Attack profile from CVSS 3.1 · CNA. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-400.
Summary
svglib before 2.3.1 is affected. Its svg2rlg() renderer expands nested SVG use references without limit, so acyclic references with repeated fan-out grow exponentially (CWE-400). An unauthenticated remote attacker can supply a small SVG file that exhausts CPU and memory in any application that renders it.
Written with Claude Haiku 5.5 from the sources below · 2026-11-24
Description from the CNA
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| deeplook | svglib | before 2.3.1 | 2.3.1 | Patch available | CNA |
| — | svglib (PyPI) | before 2.3.1 | 2.3.1 | Patch available | GHSA-555j-qj3j-c8jv |
- svglib Vendordeeplook Affected before 2.3.1 Fixed in 2.3.1 Patch available CNA
- svglib (PyPI) Vendor— Affected before 2.3.1 Fixed in 2.3.1 Patch available GHSA-555j-qj3j-c8jv
Remediation
Upgrade svglib to 2.3.1, which fixes the issue. Red Hat lists Red Hat Quay 3 and Red Hat Quay 5 as affected with no fix plan available.
Written with Claude Haiku 5.5 from the sources below · 2026-11-24
- Fix · CNA svglib (deeplook) Fixed in 2.3.1
- Fix · GHSA-555j-qj3j-c8jv svglib (PyPI) Fixed in 2.3.1 Advisory →
Vendor assessments
Red Hat
Red Hat rating: Important. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Quay 3 | Affected | No fix yet |
| Red Hat Quay 5 | Affected | No fix yet |
Timeline
- 2026-11-20 Threatist record created from CVE-2026-132275
- 2026-11-20 CISA SSVC decision points changed
- 2026-11-21 Alias added: GHSA-555j-qj3j-c8jv
- 2026-11-21 Fix available: PyPI/[email protected] · GHSA-555j-qj3j-c8jv
- 2026-11-21 CVSS score added · GHSA-555j-qj3j-c8jv
- 2026-11-21 Weakness changed · GHSA-555j-qj3j-c8jv
- 2026-11-21 5 new references · GHSA-555j-qj3j-c8jv
- 2026-11-24 Affected versions changed · Red Hat
- 2026-11-24 CVSS score added · Red Hat
- 2026-11-25 EPSS moved to the below the 50th percentile
References
More deeplook vulnerabilities
- TI-2026-99298 Uncontrolled recursion in svglib enables denial of service CVSS 4.0HIGH 8.7
Sources
- CVE-2026-132275 · CVE Program
- CVE-2026-132275 · NVD
- FIRST EPSS
- GHSA-555j-qj3j-c8jv · GitHub Advisory Database · CC BY 4.0
- CVE-2026-132275 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences