CVE-2026-107378: Kozea CairoSVG · Inefficient Algorithmic Complexity
Affects Kozea CairoSVGSource CVE Database V5
Not known to be exploited · CVSS 8.7 High : upgrade to 2.9.1 soon.
Data as of 21 Nov 2026, 17:34 UTC
- EPSS
- 0.3% chance of exploitation in 30 days – higher than 33% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 2.9.1
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 8 Oct 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 21 Nov 2026.
What to do
Upgrade CairoSVG and cairosvg to 2.9.1.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| KozeaCairoSVG | Affected
| Fixed in
|
PyPIcairosvgpkg:pypi/cairosvgOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A fix is available in CairoSVG version 2.9.1 and later. Users should upgrade to version 2.9.1 or newer to resolve the inefficient algorithmic complexity issues. Until upgrading, consider limiting the size and complexity of SVG inputs to reduce the risk of denial of service. The vendor's suggested fix involves optimizing the tokenizer and marker handling code to avoid quadratic time complexity.
Description
CVE-2026-107378 is a high-severity vulnerability in Kozea CairoSVG versions prior to 2.9.1 caused by inefficient algorithmic complexity in SVG path rendering. The vulnerability arises from two independent O(n²) operations in the path parser and marker handling code, leading to excessive CPU usage when rendering SVGs with many path segments. An attacker can exploit this by submitting a crafted SVG with a large number of path segments, causing denial of service due to high CPU consumption during rendering.
References
- github.com/Kozea/CairoSVG/security/advisories/GHSA-c3jg-qh8m-j3h2 (opens in a new tab)
- github.com/Kozea/CairoSVG/commit/9d63f049f9988d0ddda3eb94564ac3a50a286523 (opens in a new tab)
- github.com/Kozea/CairoSVG/commit/a4d585eb374724b79676e9cceaa9e9a1a4358565 (opens in a new tab)
- github.com/Kozea/CairoSVG/releases/tag/2.9.1 (opens in a new tab)