p PatchFirst

CVE-2026-132275

CVE-2026-132275 · svglib: Exponential resource consumption via nested <use> references in svg2rlg

CVSS 7.5 · High · EPSS 0.6% · Public exploit · Fix available

Compare with your installed version

Affected products and known fixed versions are public information. Compare them with your installed version.

Check the installed version:

dpkg-query -W -f='${source:Package} ${binary:Package} ${Version}\n' | awk '$1=="python-svglib"'

Assess your server’s risks

The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.

Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.

curl -fsSL https://patchfirst.dev/check.sh | sh
Check your server for free →

Channels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.

This page contains facts from public vulnerability sources. Check the original advisory before updating.

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.

Published
Updated

Fixes in distributions

Stack: system · python

Affected products and versions

  • svglib

    Versions
    • < 2.3.1: Affected

    No fix published

  • python-svglib Debian 12

    Versions
    • 1.4.1+dfsg-1
    • 1.5.1+dfsg-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • python-svglib Debian 13

    Versions
    • 1.5.1+dfsg-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • python-svglib Debian 14

    Versions
    • 1.5.1+dfsg-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • svglib PyPI

    Versions
    • 0.6.0
    • 0.6.1
    • 0.6.2
    • 0.6.3
    • 0.8.0
    • 0.8.1
    All versions (30)
    • 0.9.0
    • 0.9.0b0
    • 0.9.1
    • 0.9.2
    • 0.9.3
    • 0.9.4
    • 1.0.0
    • 1.0.1
    • 1.1.0
    • 1.2.0
    • 1.2.1
    • 1.3.0
    • 1.4.0
    • 1.4.1
    • 1.5.0
    • 1.5.1
    • 1.6.0
    • 2.0.0
    • 2.0.1
    • 2.0.2
    • 2.0b1
    • 2.1.0
    • 2.2.0
    • 2.3.0
    Affected ranges
    • ECOSYSTEM: < 2.3.1

    Update to 2.3.1

  • python-svglib Ubuntu 22.04 LTS

    Versions
    • 1.1.0+dfsg-2
    • 1.1.0+dfsg-3
    • 1.2.0+dfsg-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • python-svglib Ubuntu 24.04 LTS

    Versions
    • 1.4.1+dfsg-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • python-svglib Ubuntu 26.10

    Versions
    • 1.5.1+dfsg-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • python-svglib Ubuntu 26.04 LTS

    Versions
    • 1.5.1+dfsg-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

Original sources

Check your server →