THREAT OPS › Threat News › [GHSA] GHSA-c3jg-qh8m-j3h2 (high) — CairoSVG: Quadratic-time DoS parsing a crafted SVG <path>
[GHSA] GHSA-c3jg-qh8m-j3h2 (high) — CairoSVG: Quadratic-time DoS parsing a crafted SVG <path>
GHSA-c3jg-qh8m-j3h2 Severity: high CVE: CVE-2026-107378
CairoSVG: Quadratic-time DoS parsing a crafted SVG <path>
## Summary
Rendering an untrusted SVG whose `<path d="...">` contains many segments is O(n²) CPU. A single `<path>` under 1 MiB burns tens of seconds. Two independent O(n²) sites in `cairosvg/path.py`:
1. **Tokenizer** — the path-data parser consumes the `d` string with a `while st
Indicators of compromise
- CVE-2026-107378cve
Original source: https://github.com/advisories/GHSA-c3jg-qh8m-j3h2