Skip to main content
VulnerabilityPublished

CVE-2026-107378: Kozea CairoSVG · Inefficient Algorithmic Complexity

Affects Kozea CairoSVGSource CVE Database V5

0
Compare

Not known to be exploited · CVSS 8.7 High : upgrade to 2.9.1 soon.

Data as of 21 Nov 2026, 17:34 UTC

CVSS 4.0 base score
8.7High
How severe the flaw is on the 0–10 CVSS scale.
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:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 8 Oct 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

ProductAffectedFixed in
KozeaCairoSVGAffected
  • <2.9.1
Fixed in
  • 2.9.1
PyPIcairosvgpkg:pypi/cairosvgOther threatsAffected
  • <2.9.1
Fixed in
  • 2.9.1

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

Community reviews

Loading reviews…