{
  "id": "CVE-2026-107378",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-107378",
  "published_at": "2026-10-08T17:59:09.505Z",
  "title": "CairoSVG: Quadratic-time DoS parsing a crafted SVG \u003cpath\u003e",
  "vendor": "Kozea",
  "product": "CairoSVG",
  "cvss": {
    "score": 8.7,
    "source": "cna",
    "vector": "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"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "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.",
  "cwe": "CWE-407",
  "cvss_by_source": {
    "cna": 8.7
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Kozea",
        "product": "CairoSVG",
        "ranges": [
          "\u003c 2.9.1"
        ],
        "fixed_in": [
          "2.9.1"
        ]
      }
    ],
    "upgrade": [
      "Upgrade CairoSVG to 2.9.1 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/Kozea/CairoSVG/security/advisories/GHSA-c3jg-qh8m-j3h2"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/Kozea/CairoSVG/commit/9d63f049f9988d0ddda3eb94564ac3a50a286523"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/Kozea/CairoSVG/commit/a4d585eb374724b79676e9cceaa9e9a1a4358565"
      },
      {
        "kind": "Release notes",
        "url": "https://github.com/Kozea/CairoSVG/releases/tag/2.9.1"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
