Skip to content
High 7.5

svglibに細工されたSVGで処理が指数的に膨らみサービス停止の脆弱性

CVE-2026-132275 First seen on SecPulse

Summary

svglibの2.3.1より前のバージョンには、入れ子になったSVGの参照が指数的に展開され、CPUとメモリを大量に消費する脆弱性があります。細工された小さなSVGファイルでも影響を受けるため、外部から受け取ったSVGを変換する用途では注意が必要です。修正版の2.3.1で対応しているため、2.3.1以降へ更新してください。

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.3.1より前のバージョンには、入れ子になったSVGの参照が指数的に展開され、CPUとメモリを大量に消費する脆弱性があります。細工された小さなSVGファイルでも影響を受けるため、外部から受け取ったSVGを変換する用途では注意が必要です。修正版の2.3.1で対応しているため、2.3.1以降へ更新してください。

Affected packages

PackageAffected → Fixed
deeplooksvglib —
PyPIsvglib
< 2.3.1→ 2.3.1
pipsvglib
< 2.3.1→ 2.3.1

Fix status by distribution

Records published by each distribution for this CVE. Fixed versions differ by release; check each link.

Original description The description as published by the source.

svglib reads SVG files and converts them to other formats. Prior to 2.3.1, the svg2rlg() renderer recursively expands nested SVG references by deep-copying each referenced subtree; SvgRenderer.renderUse() in src/svglib/svglib.py calls xlink_href_target(), which rejects direct cycles but permits acyclic reference graphs with repeated fan-out. A small attacker-controlled SVG can therefore trigger exponentially increasing node expansion, consuming excessive CPU and memory in any application that renders it without a non-default option; HTML-to-PDF workflows using xhtml2pdf can reach the same renderer when an embedded data:image/svg+xml image in an HTML img element is passed to pisa.CreatePDF(). This issue is fixed in 2.3.1.

Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details