svglibに細工されたSVGで処理が止まる脆弱性、修正版は2.5.0
Summary
svglibの2.5.0より前のバージョンには、SVG内の画像参照を際限なくたどってしまう脆弱性(CVE-2026-137952)があります。細工されたSVGを処理させると、リソースを大量に消費したり、RecursionErrorでクラッシュしたりするおそれがあります。修正版の2.5.0で対応できます。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
svglibの2.5.0より前のバージョンには、SVG内の画像参照を際限なくたどってしまう脆弱性(CVE-2026-137952)があります。細工されたSVGを処理させると、リソースを大量に消費したり、RecursionErrorでクラッシュしたりするおそれがあります。修正版の2.5.0で対応できます。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| deeplooksvglib |
< 2.5.0→ 2.5.0 |
2.5.0 |
Fix status by distribution
Records published by each distribution for this CVE. Fixed versions differ by release; check each link.
- Debian DEBIAN-CVE-2026-137952 python-svglib No fixed version in this record
- Ubuntu UBUNTU-CVE-2026-137952 python-svglib No fixed version in this record
Original description The description as published by the source.
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.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory github.com
- advisory vulncheck.com
- advisory github.com
- advisory nvd.nist.gov
- package github.com
- patch github.com
- REDHAT Red Hat
- web github.com
- web github.com