Skip to content
OpenAdvisories
High · 7.5 Public exploit CVE-2026-132275 EUVD-2026-131677GHSA-555j-qj3j-c8jv

svglib: Exponential resource consumption via nested <use> references in svg2rlg

Published Nov 20, 2026 · Updated Nov 20, 2026 · Assigned by GitHub_M

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.

Affected products

VendorProductAffectedFixed
deeplook svglib < 2.3.1 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 python-svglib No fix yet —
Debian 13 python-svglib No fix yet —
Debian 12 python-svglib No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 python-svglib No fix yet —
Ubuntu 26.04 LTS python-svglib No fix yet —
Ubuntu 24.04 LTS python-svglib No fix yet —
Ubuntu 22.04 LTS python-svglib No fix yet —
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed python-svglib 2.4.0-1.1 openSUSE-SU-2026:12699-1

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

  • googlesky/CVE-2026-132275 ★ 0 · Nov 21, 2026

    svglib <=2.3.0: svg2rlg expanded <use> with no total limit — a ~1.4KB nested-use SVG drives 340k+ node clones, ~120 s CPU per file (SVG billion-laughs, like librsvg CVE-2019-20446). Real svglib 2.3.0…

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI svglib < 2.3.1 2.3.1 GHSA-555j-qj3j-c8jv

Advisories 1

References