CVE-2026-137952: svglib before 2.5.0 Denial of Service via Recursive Image Fragment References

Published Nov 27, 2026
·
Updated

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.

Affected Software

1 affected component
pypi/svglib<2.5.0

Event History

Nov 27, 2026
CVE Published
via MITRE·03:22 PM
Data Sourced
via MITRE·03:22 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Who is exposed to this issue?

Applications using svglib before 2.5.0 are exposed when they pass attacker-supplied or otherwise untrusted SVG content to svg2rlg().

2

What does an attacker need to exploit it?

An attacker only needs to provide a crafted SVG containing recursive internal <image> href fragment references, such as nested groups that reference one another twice or a self-referencing image. No authentication or user interaction is required according to the supplied severity vector.

3

What is the operational impact of successful exploitation?

The crafted SVG can cause exponential resource consumption or trigger a RecursionError crash, resulting in denial of service. The provided vector indicates availability impact only, with no confidentiality or integrity impact.

4

How can I tell whether I am affected?

You are affected if your application uses svglib before version 2.5.0 and processes SVGs through svg2rlg(), particularly SVGs received from untrusted sources.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203