CVE-2026-137952
CVE-2026-137952 · svglib before 2.5.0 Denial of Service via Recursive Image Fragment References
CVSS 8.7 · High · Fix available
Compare with your installed version
Affected products and known fixed versions are public information. Compare them with your installed version.
- svglibUpdate to 2.5.0
- python-svglib Debian 12No fix published
- python-svglib Debian 13No fix published
- python-svglib Debian 14No fix published
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 | shChannels 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 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.
- Published
- Updated
Stack: system
Affected products and versions
svglib
- Versions
- ≥ 0, < 2.5.0: Affected (semver)
Update to 2.5.0
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
Original sources
- https://github.com/deeplook/svglib/security/advisories/GHSA-cmj4-5g24-pp37
- https://github.com/deeplook/svglib/commit/be3c218c35845acb5ad88cca6352a85b0eaad00e
- https://github.com/deeplook/svglib/releases/tag/v2.5.0
- https://github.com/deeplook/svglib/blob/f99f799e6ed5841e3a405d0536a0a79ed991331c/src/svglib/svglib.py#L1427-L1440
- https://www.vulncheck.com/advisories/svglib-before-2.5.0-denial-of-service-via-recursive-image-fragment-references
- https://nvd.nist.gov/vuln/detail/CVE-2026-137952