svglib before 2.5.0 Denial of Service via Recursive Image Fragment References
- State
- Published
- Severity
- 8.7 High
- Published
- Nov 27, 2026
- Updated
- Nov 30, 2026
- Reserved
- Nov 27, 2026
Description
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.
| Product | Versions |
|---|---|
| svglib deeplook | before 2.5.0 Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 8.7 High | VulnCheck | |
| 3.1 | 7.5 High | VulnCheck |
Weaknesses
- CWE-674 Uncontrolled Recursion
References
- GitHub Security Advisory (GHSA-cmj4-5g24-pp37)Vendor Advisory
- https://github.com/deeplook/svglib/commit/be3c218c35845acb5ad88cca6352a85b0eaad00ePatch
- svglib v2.5.0 Release NotesRelease Notes
- https://github.com/deeplook/svglib/blob/f99f799e6ed5841e3a405d0536a0a79ed991331c/src/svglib/svglib.py#L1427-L1440Technical Details
- VulnCheck Advisory: svglib before 2.5.0 Denial of Service via Recursive Image Fragment ReferencesThird-Party Advisory
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.