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

- Severity: High 8.7 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.38%, higher than 34% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-10-08T17:59:09.505Z
- Modified: 2026-10-15T14:56:21.119Z
- Also known as: GHSA-c3jg-qh8m-j3h2, PYSEC-2026-4204
- Weaknesses: CWE-407
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- Kozea CairoSVG: < 2.9.1
- cairosvg (PyPI): before 2.9.1

## Every score

- GitHub_M: 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`
- GitHub: CVSS:4.0 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`
- PyPA Advisory Database: CVSS:4.0 `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`

## References

- <https://github.com/Kozea/CairoSVG/security/advisories/GHSA-c3jg-qh8m-j3h2> (exploit, web)
- <https://github.com/Kozea/CairoSVG/commit/9d63f049f9988d0ddda3eb94564ac3a50a286523> (web)
- <https://github.com/Kozea/CairoSVG/commit/a4d585eb374724b79676e9cceaa9e9a1a4358565> (web)
- <https://github.com/Kozea/CairoSVG/releases/tag/2.9.1> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-107378> (advisory)
- <https://github.com/Kozea/CairoSVG> (package)
- <https://pypi.org/project/cairosvg> (package)
- <https://github.com/advisories/GHSA-c3jg-qh8m-j3h2> (advisory)

## Sources

- CVE List: [CVE-2026-107378](https://www.cve.org/CVERecord?id=CVE-2026-107378), CVE Terms of Use, modified 2026-10-08
- GitHub Advisory Database: [GHSA-c3jg-qh8m-j3h2](https://github.com/advisories/GHSA-c3jg-qh8m-j3h2), CC-BY-4.0, modified 2026-10-15
- NVD: [CVE-2026-107378](https://nvd.nist.gov/vuln/detail/CVE-2026-107378), Public domain, modified 2026-10-08
- PyPA Advisory Database: [PYSEC-2026-4204](https://osv.dev/vulnerability/PYSEC-2026-4204), CC-BY-4.0, modified 2026-10-15

---

Page: https://cve.day/CVE-2026-107378 · Whole record: https://cve.day/CVE-2026-107378.json · Rebuilt by cve.day 2026-11-25T22:59:43.199Z
