# CVE-2026-107378: CairoSVG: Quadratic-time DoS parsing a crafted SVG \<path\>

- Priority: **Prioritise**
- Reason: Severe, CVSS 8.7 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 0% (FIRST, 04-12-2026)
- Next step: Check applicability: affected before 2.9.1 (CNA); fix release not confirmed
- Status: published
- Published: 2026-10-08 · Modified: 2026-10-08
- Aliases: GHSA-c3jg-qh8m-j3h2, DEBIAN-CVE-2026-107378, openSUSE-SU-2026:12111-1, UBUNTU-CVE-2026-107378, PYSEC-2026-4204, openSUSE-SU-2026:22182-1, SUSE-SU-2026:4949-1, SUSE-SU-2026:24596-1, openSUSE-SU-2026:22433-1, SUSE-SU-2026:24898-1, SUSE-SU-2026:24952-1
- Record: https://cvemate.com/vulnerability/CVE-2026-107378 · JSON: https://cvemate.com/vulnerability/CVE-2026-107378/json

## Description

```text
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.
```

## Signals

- CVSS: 8.7 high (v4.0, CVE.org) 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.383%, percentile 34.467%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 24)

- debian cairosvg (Debian): \< 2.9.0-1 \| All versions (No fix recorded) \| \< 2.9.1-1
- ubuntu cairo (Ubuntu): All versions (No fix recorded)
- ubuntu cairosvg (Ubuntu): All versions (No fix recorded)
- kozea cairosvg: \< 2.9.1
- PyPI cairosvg (PyPI): \< 2.9.1
- opensuse python-CairoSVG&distro=openSUSE Leap 16.0 (openSUSE): \< 2.7.1-160000.4.1
- opensuse python-CairoSVG&distro=openSUSE Leap 16.1 (openSUSE): \< 2.7.1-160100.3.1
- opensuse python-CairoSVG&distro=openSUSE Tumbleweed (openSUSE): \< 2.9.1-1.1
- suse python-CairoSVG&distro=SUSE Linux Enterprise High Performance Computing 15 SP4-ESPOS (SUSE Linux Enterprise): \< 2.7.1-150400.9.9.1
- suse python-CairoSVG&distro=SUSE Linux Enterprise High Performance Computing 15 SP4-LTSS (SUSE Linux Enterprise): \< 2.7.1-150400.9.9.1
- suse python-CairoSVG&distro=SUSE Linux Enterprise High Performance Computing 15 SP5-ESPOS (SUSE Linux Enterprise): \< 2.7.1-150400.9.9.1
- suse python-CairoSVG&distro=SUSE Linux Enterprise High Performance Computing 15 SP5-LTSS (SUSE Linux Enterprise): \< 2.7.1-150400.9.9.1
- suse python-CairoSVG&distro=SUSE Linux Enterprise Module for Python 3 15 SP7 (SUSE Linux Enterprise): \< 2.7.1-150400.9.9.1
- suse python-CairoSVG&distro=SUSE Linux Enterprise Server 15 SP4-LTSS (SUSE Linux Enterprise): \< 2.7.1-150400.9.9.1
- suse python-CairoSVG&distro=SUSE Linux Enterprise Server 15 SP5-LTSS (SUSE Linux Enterprise): \< 2.7.1-150400.9.9.1
- suse python-CairoSVG&distro=SUSE Linux Enterprise Server 15 SP6-LTSS (SUSE Linux Enterprise): \< 2.7.1-150400.9.9.1
- suse python-CairoSVG&distro=SUSE Linux Enterprise Server 16.0 (SUSE Linux Enterprise): \< 2.7.1-160000.4.1
- suse python-CairoSVG&distro=SUSE Linux Enterprise Server 16.1 (SUSE Linux Enterprise): \< 2.7.1-160100.3.1
- suse python-CairoSVG&distro=SUSE Linux Enterprise Server for NVIDIA 16.1 (SUSE Linux Enterprise): \< 2.7.1-160100.3.1
- suse python-CairoSVG&distro=SUSE Linux Enterprise Server for SAP Applications 15 SP4 (SUSE Linux Enterprise): \< 2.7.1-150400.9.9.1

## References

- <https://github.com/Kozea/CairoSVG/security/advisories/GHSA-c3jg-qh8m-j3h2>
- <https://github.com/Kozea/CairoSVG/commit/9d63f049f9988d0ddda3eb94564ac3a50a286523>
- <https://github.com/Kozea/CairoSVG/commit/a4d585eb374724b79676e9cceaa9e9a1a4358565>
- <https://github.com/Kozea/CairoSVG/releases/tag/2.9.1>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-107378>
- <https://github.com/Kozea/CairoSVG>
- <https://security-tracker.debian.org/tracker/CVE-2026-107378>
- <https://www.suse.com/security/cve/CVE-2026-107378>
- <https://ubuntu.com/security/CVE-2026-107378>
- <https://www.cve.org/CVERecord?id=CVE-2026-107378>
- <https://pypi.org/project/cairosvg>
- <https://github.com/advisories/GHSA-c3jg-qh8m-j3h2>
- <https://bugzilla.suse.com/1284832>
- <https://www.suse.com/support/update/announcement/2026/suse-su-20264949-1/>
- <https://www.suse.com/support/update/announcement/2026/suse-su-202624596-1/>
- <https://www.suse.com/support/update/announcement/2026/suse-su-202624898-1/>
- <https://www.suse.com/support/update/announcement/2026/suse-su-202624952-1/>

---

Data as of 2026-12-05T06:40:38.009Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
