{"id":"CVE-2026-107378","published":"2026-10-08T17:59:09Z","modified":"2026-10-08T18:31:17Z","title":"CairoSVG: Quadratic-time DoS parsing a crafted SVG <path>","vendor":"Kozea","product":"CairoSVG","tier":"tail","description":{"text":"CairoSVG is an SVG converter based on Cairo, a 2D graphics library. Prior to 2.9.1, rendering an attacker-controlled SVG with a path containing many segments can cause quadratic CPU consumption in cairosvg/path.py. The path tokenizer repeatedly slices and rescans the remaining path data, while draw_markers drains node.vertices with node.vertices.pop(0), causing repeated linear-time work. The svg2png, svg2pdf, and svg2ps APIs reach these operations during ordinary rendering, allowing a sub-megabyte SVG to consume substantial CPU and deny service to a rendering application. This issue is fixed in version 2.9.1.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.7,"severity":"HIGH","version":"4.0","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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00524,"percentile":0.37805,"provenance":"source"},"cwes":[{"id":"CWE-407","name":"Inefficient Algorithmic Complexity"}],"references":[{"url":"https://github.com/Kozea/CairoSVG/security/advisories/GHSA-c3jg-qh8m-j3h2","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/Kozea/CairoSVG/commit/9d63f049f9988d0ddda3eb94564ac3a50a286523","tags":["x_refsource_MISC"]},{"url":"https://github.com/Kozea/CairoSVG/commit/a4d585eb374724b79676e9cceaa9e9a1a4358565","tags":["x_refsource_MISC"]},{"url":"https://github.com/Kozea/CairoSVG/releases/tag/2.9.1","tags":["x_refsource_MISC"]}],"priority":{"score":13.7,"factors":[{"name":"EPSS percentile","points":7.56},{"name":"CVSS severity","points":6.09}]},"vendorSlug":"kozea","affectedVersions":[{"vendor":"Kozea","product":"CairoSVG","versions":["< 2.9.1"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2026-10-08T18:31:09.975017Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"cairosvg","vulnerableRanges":["<2.9.1"],"patched":["2.9.1"],"from":["GHSA-c3jg-qh8m-j3h2","PYSEC-2026-4204"],"provenance":"source"}],"summary":{"text":"CairoSVG, an SVG-to-raster/vector converter by Kozea, has a flaw in its path handling (cairosvg/path.py) where the path tokenizer and draw_markers routine do repeated re-scanning and list-popping work that scales quadratically with the number of path segments. An attacker who can supply an SVG for rendering over the network, with no authentication or user interaction and no special configuration, can craft a sub-megabyte file with a path containing many segments to consume substantial CPU and deny service to the rendering application.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:43:38Z"},"euvd":{"id":"EUVD-2026-95135","exploited":false,"provenance":"source"}}