cve.bz

CVE-2026-107378 kozea cairosvg: Inefficient Algorithmic Complexity

8.7 highEPSS 0.4%Fix available

High (8.7) in kozea cairosvg. EPSS 0.4% estimated probability of exploitation activity in the next 30 days. Fixed in cairosvg 2.9.1.

On this page
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.

Severity

CVSS 4.0

8.7 high
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
EPSS
0.4% (unchanged from 0.4% a week ago; 0.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 33rd percentile. Scored 2026-11-17. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: yes · Technical impact: partial, assessed 2026-10-08. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-407 Inefficient Algorithmic Complexity
Published
Modified
NVD analysis
Awaiting analysis
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-107378 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-107378?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-107378?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-107378 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Kozea CairoSVG< 2.9.1

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-c3jg-qh8m-j3h2PyPIcairosvg<2.9.12.9.1
PYSEC-2026-4204PyPIcairosvg<2.9.12.9.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13cairosvgno fix listedDEBIAN-CVE-2026-107378
Debian14cairosvg2.9.1-1DEBIAN-CVE-2026-107378
Ubuntu24.04:LTS, Pro:16.04:LTS, Pro:18.04:LTS and 2 morecairosvgno fix listedUBUNTU-CVE-2026-107378
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 8 morepython-CairoSVG2.7.1-150400.9.9.1SUSE-SU-2026:4949-1
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0python-CairoSVG2.7.1-160000.4.1SUSE-SU-2026:24596-1
openSUSELeap 16.0python-CairoSVG2.7.1-160000.4.1openSUSE-SU-2026:22182-1
openSUSETumbleweedpython-CairoSVG2.9.1-1.1openSUSE-SU-2026:12111-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This vulnerability is rated as Important because an unauthenticated remote attacker can exhaust server CPU resources and induce a denial of service by submitting a small, malicious vector graphic. The flaw affects web applications and automated conversion pipelines that ingest untrusted graphic files and render them using CairoSVG without input restrictions. However, CairoSVG is not included in core Red Hat Enterprise Linux channels and is only distributed through community repositories such as EPEL, meaning default enterprise deployments do not include or expose this component.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-107378.

References

Check your stackJSON