CVE-2026-137952: svglib before 2.5.0 Denial of Service via Recursive Image Fragment References
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
Event History
Frequently Asked Questions
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().
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.
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.
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.