CVE-2026-107378: CairoSVG: Quadratic-time DoS parsing a crafted SVG <path>
Vulnerability summary
CVE-2026-107378 is a high (CVSS 8.7) Inefficient Algorithmic Complexity vulnerability in kozea cairosvg. EPSS estimates a 0.38% chance of exploitation in the next 30 days, higher than 34.4% of scored vulnerabilities.
Severe, CVSS 8.7 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 0% (FIRST, 04-12-2026)
Source freshness unavailable
How is this decided?Timeline
- 08-10-2026PublishedVulnerability first disclosed.
- 08-10-2026Last modifiedVulnerability information updated.
Description
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.
CVSS metrics
5 scores · 5 sources · 1 version- OSV · PypiEcosystem advisory · calculated8.7HighCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
- OSV · DebianEcosystem advisory · calculated8.7HighCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
- NVDNIST8.7HighCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
- OSV · UbuntuEcosystem advisory · calculated8.7HighCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
EPSS trend
Probability
0.38%
Chance of exploitation in the next 30 days
Percentile
34%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.38% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Suse16 products
- python-CairoSVG&distro=SUSE Linux Enterprise High Performance Computing 15 SP4-ESPOS< 2.7.1-150400.9.9.1
- python-CairoSVG&distro=SUSE Linux Enterprise High Performance Computing 15 SP4-LTSS< 2.7.1-150400.9.9.1
- python-CairoSVG&distro=SUSE Linux Enterprise High Performance Computing 15 SP5-ESPOS< 2.7.1-150400.9.9.1
- python-CairoSVG&distro=SUSE Linux Enterprise High Performance Computing 15 SP5-LTSS< 2.7.1-150400.9.9.1
- python-CairoSVG&distro=SUSE Linux Enterprise Module for Python 3 15 SP7< 2.7.1-150400.9.9.1
Opensuse3 products
- python-CairoSVG&distro=openSUSE Leap 16.0< 2.7.1-160000.4.1
- python-CairoSVG&distro=openSUSE Leap 16.1< 2.7.1-160100.3.1
- python-CairoSVG&distro=openSUSE Tumbleweed< 2.9.1-1.1
Ubuntu2 products
- cairoAll versions (No fix recorded)
- cairosvgAll versions (No fix recorded)
Debian1 product
- cairosvg< 2.9.0-1 | All versions (No fix recorded) | < 2.9.1-1
Kozea1 product
- cairosvg< 2.9.1
PyPI1 product
- cairosvg< 2.9.1
6 vendors · 24 products
References
17 links- github.com/Kozea/CairoSVGPACKAGE
Show all 17 references
- pypi.org/project/cairosvgPACKAGE