CVE-2026-107378 CairoSVG: Quadratic-time DoS parsing a crafted SVG <path>
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: yes · technical impact: partial
- Technology
- UbuntuDebian
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.
Upgrade path
8 packages: 3 fixed, 4 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/cairosvg(Debian 12) | = 2.5.2-1.1; = 2.5.2-1.1+deb12u1; = 2.7.0-1; = 2.7.1-1 +7 more | No fix listed | No fix yet |
| debian/cairosvg(Debian 13) | = 2.7.1-2; = 2.8.2-1; = 2.9.0-1; = 2.9.0-2 +3 more | No fix listed | No fix yet |
| ubuntu/cairosvg(Ubuntu 22.04) | All versions | No fix listed | No fix yet |
| ubuntu/cairosvg(Ubuntu 24.04) | All versions | No fix listed | No fix yet |
| azure linux python-cairosvg(Azure Linux 4.0) | < 0:2.9.1-2.azl4 | 0:2.9.1-2.azl4 | Fixed |
| debian/cairosvg(Debian 14) | < 2.9.1-1; = 2.7.1-2; = 2.8.2-1; = 2.9.0-1 +1 more | 2.9.1-1 | Fixed |
| pypi cairosvg(PyPI) | < 2.9.1; <= 2.9.0; = 0.1; = 0.1.1 +64 more | 2.9.1 | Fixed |
| Kozea CairoSVG | = < 2.9.1 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi cairosvg(PyPI) | < 2.9.1 | 2.9.1 |
| pypi cairosvg(PyPI) | = 0.1 | No fix listed |
| pypi cairosvg(PyPI) | = 0.1.1 | No fix listed |
| pypi cairosvg(PyPI) | = 0.1.2 | No fix listed |
| pypi cairosvg(PyPI) | = 0.2 | No fix listed |
| pypi cairosvg(PyPI) | = 0.3 | No fix listed |
| pypi cairosvg(PyPI) | = 0.3.1 | No fix listed |
| pypi cairosvg(PyPI) | = 0.4 | No fix listed |
| pypi cairosvg(PyPI) | = 0.4.1 | No fix listed |
| pypi cairosvg(PyPI) | = 0.4.2 | No fix listed |
| pypi cairosvg(PyPI) | = 0.4.3 | No fix listed |
| pypi cairosvg(PyPI) | = 0.4.4 | No fix listed |
| pypi cairosvg(PyPI) | = 0.5 | No fix listed |
| pypi cairosvg(PyPI) | = 1.0 | No fix listed |
| pypi cairosvg(PyPI) | = 1.0.1 | No fix listed |
| pypi cairosvg(PyPI) | = 1.0.10 | No fix listed |
| pypi cairosvg(PyPI) | = 1.0.11 | No fix listed |
| pypi cairosvg(PyPI) | = 1.0.12 | No fix listed |
| pypi cairosvg(PyPI) | = 1.0.13 | No fix listed |
| pypi cairosvg(PyPI) | = 1.0.14 | No fix listed |
| pypi cairosvg(PyPI) | = 1.0.15 | No fix listed |
| pypi cairosvg(PyPI) | = 1.0.16 | No fix listed |
| pypi cairosvg(PyPI) | = 1.0.17 | No fix listed |
| pypi cairosvg(PyPI) | = 1.0.18 | No fix listed |
| pypi cairosvg(PyPI) | = 1.0.19 | No fix listed |
Show 70 more
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi cairosvg(PyPI) | = 1.0.2 | No fix listed |
| pypi cairosvg(PyPI) | = 1.0.20 | No fix listed |
| pypi cairosvg(PyPI) | = 1.0.21 | No fix listed |
| pypi cairosvg(PyPI) | = 1.0.22 | No fix listed |
| pypi cairosvg(PyPI) | = 1.0.3 | No fix listed |
| pypi cairosvg(PyPI) | = 1.0.4 | No fix listed |
| pypi cairosvg(PyPI) | = 1.0.5 | No fix listed |
| pypi cairosvg(PyPI) | = 1.0.6 | No fix listed |
| pypi cairosvg(PyPI) | = 1.0.7 | No fix listed |
| pypi cairosvg(PyPI) | = 1.0.8 | No fix listed |
| pypi cairosvg(PyPI) | = 1.0.9 | No fix listed |
| pypi cairosvg(PyPI) | = 2.0.0 | No fix listed |
| pypi cairosvg(PyPI) | = 2.0.0rc1 | No fix listed |
| pypi cairosvg(PyPI) | = 2.0.0rc2 | No fix listed |
| pypi cairosvg(PyPI) | = 2.0.0rc3 | No fix listed |
| pypi cairosvg(PyPI) | = 2.0.0rc4 | No fix listed |
| pypi cairosvg(PyPI) | = 2.0.0rc5 | No fix listed |
| pypi cairosvg(PyPI) | = 2.0.0rc6 | No fix listed |
| pypi cairosvg(PyPI) | = 2.0.1 | No fix listed |
| pypi cairosvg(PyPI) | = 2.0.2 | No fix listed |
| pypi cairosvg(PyPI) | = 2.0.3 | No fix listed |
| pypi cairosvg(PyPI) | = 2.1.0 | No fix listed |
| pypi cairosvg(PyPI) | = 2.1.1 | No fix listed |
| pypi cairosvg(PyPI) | = 2.1.2 | No fix listed |
| pypi cairosvg(PyPI) | = 2.1.3 | No fix listed |
| pypi cairosvg(PyPI) | = 2.2.0 | No fix listed |
| pypi cairosvg(PyPI) | = 2.2.1 | No fix listed |
| pypi cairosvg(PyPI) | = 2.3.0 | No fix listed |
| pypi cairosvg(PyPI) | = 2.3.1 | No fix listed |
| pypi cairosvg(PyPI) | = 2.4.0 | No fix listed |
| pypi cairosvg(PyPI) | = 2.4.1 | No fix listed |
| pypi cairosvg(PyPI) | = 2.4.2 | No fix listed |
| pypi cairosvg(PyPI) | = 2.5.0 | No fix listed |
| pypi cairosvg(PyPI) | = 2.5.1 | No fix listed |
| pypi cairosvg(PyPI) | = 2.5.2 | No fix listed |
| pypi cairosvg(PyPI) | = 2.6.0 | No fix listed |
| pypi cairosvg(PyPI) | = 2.7.0 | No fix listed |
| pypi cairosvg(PyPI) | = 2.7.1 | No fix listed |
| pypi cairosvg(PyPI) | = 2.8.0 | No fix listed |
| pypi cairosvg(PyPI) | = 2.8.1 | No fix listed |
| pypi cairosvg(PyPI) | = 2.8.2 | No fix listed |
| pypi cairosvg(PyPI) | = 2.9.0 | No fix listed |
| Kozea CairoSVG | = < 2.9.1 | No fix listed |
| debian/cairosvg(Debian:12) | All versions | No fix listed |
| debian/cairosvg(Debian:12) | = 2.5.2-1.1 | No fix listed |
| debian/cairosvg(Debian:12) | = 2.5.2-1.1+deb12u1 | No fix listed |
| debian/cairosvg(Debian:12) | = 2.7.0-1 | No fix listed |
| debian/cairosvg(Debian:12) | = 2.7.1-1 | No fix listed |
| debian/cairosvg(Debian:12) | = 2.7.1-2 | No fix listed |
| debian/cairosvg(Debian:12) | = 2.8.2-1 | No fix listed |
| debian/cairosvg(Debian:12) | = 2.9.0-1 | No fix listed |
| debian/cairosvg(Debian:12) | = 2.9.0-2 | No fix listed |
| debian/cairosvg(Debian:12) | = 2.9.1-1 | No fix listed |
| debian/cairosvg(Debian:12) | = 2.9.1-2 | No fix listed |
| debian/cairosvg(Debian:13) | All versions | No fix listed |
| debian/cairosvg(Debian:13) | = 2.7.1-2 | No fix listed |
| debian/cairosvg(Debian:13) | = 2.8.2-1 | No fix listed |
| debian/cairosvg(Debian:13) | = 2.9.0-1 | No fix listed |
| debian/cairosvg(Debian:13) | = 2.9.0-2 | No fix listed |
| debian/cairosvg(Debian:13) | = 2.9.1-1 | No fix listed |
| debian/cairosvg(Debian:13) | = 2.9.1-2 | No fix listed |
| debian/cairosvg(Debian:14) | < 2.9.1-1 | 2.9.1-1 |
| debian/cairosvg(Debian:14) | = 2.7.1-2 | No fix listed |
| debian/cairosvg(Debian:14) | = 2.8.2-1 | No fix listed |
| debian/cairosvg(Debian:14) | = 2.9.0-1 | No fix listed |
| debian/cairosvg(Debian:14) | = 2.9.0-2 | No fix listed |
| pypi cairosvg(PyPI) | <= 2.9.0 | No fix listed |
| ubuntu/cairosvg(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/cairosvg(Ubuntu:22.04) | All versions | No fix listed |
| azure linux python-cairosvg(Azure Linux:4.0) | < 0:2.9.1-2.azl4 | 0:2.9.1-2.azl4 |
References
- https://github.com/Kozea/CairoSVG/security/advisories/GHSA-c3jg-qh8m-j3h2 exploit vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/Kozea/CairoSVG/commit/9d63f049f9988d0ddda3eb94564ac3a50a286523 patch
- https://github.com/Kozea/CairoSVG/commit/a4d585eb374724b79676e9cceaa9e9a1a4358565 patch
- github.com product
- https://github.com/Kozea/CairoSVG/releases/tag/2.9.1
- pypi.org product
- github.com vendor-advisory
- Red Hat CVE page vendor-advisory
- Red Hat Bugzilla 2548141 issue-tracking
- www.cve.org
- Debian Security Tracker CVE-2026-107378 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- MSRC Security Update Guide vendor-advisory
- Release Notes vendor-advisory
- ENISA EUVD EUVD-2026-95135 third-party-advisory