Read the docs

Exponential resource consumption in svglib via nested use references

Priority HIGH 72CWE-400Published · Updated

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

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.00609 43rd percentileScored 2026-11-30
Fix Partial svglib (deeplook): 2.3.1svglib (PyPI): 2.3.1Red Hat: 2 without a fix

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

VendorProductAffected versionsFixed inStatusSource
deeplooksvglibbefore 2.3.12.3.1Patch availableCNA
—svglib (PyPI)before 2.3.12.3.1Patch availableGHSA-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 →

ProductStatusPlan or fix
Red Hat Quay 3AffectedNo fix yet
Red Hat Quay 5AffectedNo fix yet

Timeline

  1. 2026-11-20 Threatist record created from CVE-2026-132275
  2. 2026-11-20 CISA SSVC decision points changed
  3. 2026-11-21 Alias added: GHSA-555j-qj3j-c8jv
  4. 2026-11-21 Fix available: PyPI/[email protected] · GHSA-555j-qj3j-c8jv
  5. 2026-11-21 CVSS score added · GHSA-555j-qj3j-c8jv
  6. 2026-11-21 Weakness changed · GHSA-555j-qj3j-c8jv
  7. 2026-11-21 5 new references · GHSA-555j-qj3j-c8jv
  8. 2026-11-24 Affected versions changed · Red Hat
  9. 2026-11-24 CVSS score added · Red Hat
  10. 2026-11-25 EPSS moved to the below the 50th percentile

References

  • TI-2026-99298 Uncontrolled recursion in svglib enables denial of service CVSS 4.0HIGH 8.7

Sources