Read the docs

Uncontrolled recursion in svglib enables denial of service

Priority HIGH 77CWE-674Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Attack requirements
None
Impact type
Denial of service
Confidentiality · integrity · availability
None · None · High
Fix status
Fixed

Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-674.

Summary

svglib before 2.5.0 is affected. Its SvgRenderer.renderNode() function recursively renders internal image href fragment references without expansion limits or cycle detection (CWE-674). A remote attacker who supplies a crafted SVG to svg2rlg() can cause exponential resource consumption or RecursionError crashes, without authentication or user interaction.

Written with Claude Haiku 5.5 from the sources below · 2026-11-30

Description from the CNA

svglib before 2.5.0 contains a denial of service vulnerability in SvgRenderer.renderNode() that recursively renders internal <image> href fragment references without expansion limits or cycle detection. Attackers can supply crafted SVGs to svg2rlg() with nested groups referencing each other twice or self-referencing images to cause exponential resource consumption or RecursionError crashes.

Why it matters now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.00754 51st percentileScored 2026-11-30
Fix Fixed svglib (deeplook): 2.5.0

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.5.02.5.0Patch availableCNA
  • svglib Vendordeeplook Affected before 2.5.0 Fixed in 2.5.0 Patch available CNA

Remediation

Upgrade svglib to version 2.5.0, which fixes this issue.

Written with Claude Haiku 5.5 from the sources below · 2026-11-30

  • Fix · CNA svglib (deeplook) Fixed in 2.5.0

Vendor assessments

Red Hat

Red Hat rating: Important. Red Hat's page for this CVE →

Not affected: 2 products
  • Red Hat Quay 3
  • Red Hat Quay 5

Timeline

  1. 2026-11-27 Threatist record created from CVE-2026-137952
  2. 2026-11-27 Alias added: GHSA-fvj4-9rvp-wvfc
  3. 2026-11-28 Affected versions changed · Red Hat
  4. 2026-11-28 CVSS score added · Red Hat
  5. 2026-11-30 CISA SSVC decision points changed

References

  • TI-2026-95941 Exponential resource consumption in svglib via nested use references CVSS 3.1HIGH 7.5

Sources