Description
CairoSVG is a Python (pypi) package. CairoSVG is an SVG converter based on Cairo. In CairoSVG before version 2.5.1, there is a regular expression denial of service (REDoS) vulnerability. When processing SVG files, the python package CairoSVG uses two regular expressions which are vulnerable to Regular Expression Denial of Service (REDoS). If an attacker provides a malicious SVG, it can make cairosvg get stuck processing the file for a very long time. This is fixed in version 2.5.1. See Referenced GitHub advisory for more information.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Kozea | CairoSVG | < 2.5.1 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | cairosvg | 2.5.0-1.1 | — |
| Debian 13 | cairosvg | 2.5.0-1.1 | — |
| Debian 12 | cairosvg | 2.5.0-1.1 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | cairosvg | No fix yet | — |
| Ubuntu 25.10 | cairosvg | No fix yet | — |
| Ubuntu 20.04 LTS | cairosvg | No fix yet | — |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SUSE Package Hub 15 SP5 | python-CairoSVG | 2.5.2-bp155.3.3.1 | openSUSE-SU-2023:0260-1 |
| SUSE Package Hub 15 SP4 | python-CairoSVG | 2.5.2-bp154.2.3.1 | openSUSE-SU-2023:0272-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | python-CairoSVG | 2.9.0-1.3 | openSUSE-SU-2026:11989-1 |
| openSUSE Leap 15.5 | python-CairoSVG | 2.5.2-bp155.3.3.1 | openSUSE-SU-2023:0260-1 |
| openSUSE Leap 15.4 | python-CairoSVG | 2.5.2-bp154.2.3.1 | openSUSE-SU-2023:0272-1 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.24 | py3-cairosvg | 2.5.1-r0 | — |
| Alpine v3.23 | py3-cairosvg | 2.5.1-r0 | — |
| Alpine v3.22 | py3-cairosvg | 2.5.1-r0 | — |
| Alpine v3.21 | py3-cairosvg | 2.5.1-r0 | — |
| Alpine v3.20 | py3-cairosvg | 2.5.1-r0 | — |
Show 2 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.19 | py3-cairosvg | 2.5.1-r0 | — |
| Alpine v3.18 | py3-cairosvg | 2.5.1-r0 | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | cairosvg | < 2.5.1 | 2.5.1 | GHSA-hq37-853p-g5cf |
Advisories 3
- openSUSE-SU-2026:11989-1 python313-CairoSVG-2.9.0-1.3 on GA media SUSE / openSUSE Security Updates · Oct 5, 2026
- openSUSE-SU-2023:0272-1 Security update for python-CairoSVG SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2023:0260-1 Security update for python-CairoSVG SUSE / openSUSE Security Updates · Feb 4, 2026