PyPI
CVE-2026-137952
svglib before 2.5.0 Denial of Service via Recursive Image Fragment References
- Severity
- High 8.7
- Published
- 27 Nov 2026
- Last changed
- 27 Nov 2026
- Added to UpHeron
- 27 Nov 2026
- Fixed in
- 2.5.0
- Exploit chance
- 0.8% in the next 30 daysHigher than 51% of CVEs. EPSS by FIRST, 29 Nov 2026
- Weakness
- Uncontrolled recursion (CWE-674)
- Attack
- Over the network · No login needed · No user action needed
- Attacker can
- Take it down
- CVSS vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N- Sources
- CVE Program
Description
svglib before 2.5.0 contains a denial of service vulnerability in SvgRenderer.renderNode() that recursively renders internal 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
| Software | Affected versions |
|---|---|
svglibPyPI · osv:PyPI:svglib |
|
Status in Debian
Debian builds fixes into its own packages, so a release is often fixed under an older version number than the one upstream names.
- 4 vulnerable
| Package | Debian release | Status |
|---|---|---|
| python-svglib | sidunstable | VulnerableNo fix yet. |
| 14forkytesting | VulnerableNo fix yet. | |
| 13trixiestable | VulnerableNo fix yet. | |
| 12bookwormoldstable | VulnerableNo fix yet. |
From Debian's security tracker for CVE-2026-137952 , read in the last 12 hours.
About svglib
- Weekly downloads (PyPI)
- 1,432,311PyPI Stats, 24 Nov 2026
Vulnerabilities in svglib
- In our list
- 2
- Published in the last 12 months
- 2
- Critical, last 12 months
- 0
- High, last 12 months
- 2
- Known exploited
- 0
- CVE-2026-132275svglib: Exponential resource consumption via nested <use> references in svg2rlgHigh 7.5 20 Nov 2026
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-137952