CVE-2026-137952

svglib before 2.5.0 Denial of Service via Recursive Image Fragment References

Published Nov 27, 2026 CVSS 4.0 · 8.7 High EPSS n/a KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

The fault resides in Svglib's rendering engine, where the SvgRenderer.renderNode() routine processes <image> elements without enforcing a recursion limit or detecting cycles. Attackers can craft SVG files that contain nested group elements or self‑referencing image fragments, which cause svg2rlg() to recurse until system resources are exhausted or a RecursionError terminates the process. This leads to a denial of service that affects service availability but not confidentiality or integrity.

Affected Systems

The flaw affects the deeplook svglib library, specifically all releases earlier than 2.5.0. Any application that imports svglib and invokes svg2rlg() is potentially vulnerable. Users relying on older svglib versions should verify the package version and apply updates.

Risk and Exploitability

The vulnerability received a CVSS score of 8.7, indicating high severity. The EPSS score is not available, and the flaw is not listed in the CISA KEV catalog, suggesting that, while exploitation is plausible, widespread attacks have not yet been observed. Assuming the code processes external SVG input, the likely attack vector involves uploading or embedding a crafted SVG into a system that renders it via svglib. In environments where svglib is exposed to untrusted data, an attacker can trigger the recursion and force a service interruption.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade svglib to version 2.5.0 or later, which contains a recursion limit and cycle detection for <image> fragments.
  • When upgrading is not possible immediately, enforce input validation to reject SVG files containing nested <image> href fragments or place a strict recursion depth check in the rendering call.
  • Implement sandboxing or resource limits (e.g., CPU, memory quotas) around processes that use svglib to mitigate the impact of accidental or malicious recursion.

Generated by OpenCVE AI on November 28, 2026 at 02:05 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Deeplook
Deeplook svglib
Vendors & Products Deeplook
Deeplook svglib
Type Values Removed Values Added
Description 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.
Title svglib before 2.5.0 Denial of Service via Recursive Image Fragment References
First Time appeared Svglib Project
Svglib Project svglib
Weaknesses CWE-674
CPEs cpe:2.3:a:svglib_project:svglib:*:*:*:*:*:*:*:*
Vendors & Products Svglib Project
Svglib Project svglib
References
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}

cvssV4_0

{'score': 8.7, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-674

    Uncontrolled Recursion

  • CWE-770

    Allocation of Resources Without Limits or Throttling

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 27, 2026, 3:22 PM
Reserved
Nov 27, 2026, 2:46 PM
Status
Received
Published
Nov 27, 2026, 4:18 PM
Modified
Nov 27, 2026, 4:18 PM
Severity
Important
Public date
Nov 27, 2026, 3:22 PM