
CVE catalog
CVE-2021-21236
cairosvg: CVE-2021-21236
- Severity
- Medium · CVSS 5.5
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 1.37% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | cairosvg | sid | 2.9.1-1 | fixed |
| Debian | cairosvg | forky | 2.9.1-1 | fixed |
| Debian | cairosvg | trixie | 2.7.1-2 | fixed |
| Debian | cairosvg | bookworm | 2.5.2-1.1+deb12u1 | fixed |
| Opensuse | python-CairoSVG | tumbleweed | 2.9.0-1.3 | fixed |
| Suse | python-CairoSVG | package hub 15 sp4 | 2.5.2-bp154.2.3.1 | fixed |
| Opensuse | python-CairoSVG | leap 15.4 | 2.5.2-bp154.2.3.1 | fixed |
| Suse | python-CairoSVG | package hub 15 sp5 | 2.5.2-bp155.3.3.1 | fixed |
| Opensuse | python-CairoSVG | leap 15.5 | 2.5.2-bp155.3.3.1 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | cairosvg | source | sid | 2.5.0-1.1 | not yet assigned | Not reported | [979597] |
| Debian | cairosvg | source | forky | 2.5.0-1.1 | not yet assigned | Not reported | [979597] |
| Debian | cairosvg | source | trixie | 2.5.0-1.1 | not yet assigned | Not reported | [979597] |
| Debian | cairosvg | source | bookworm | 2.5.0-1.1 | not yet assigned | Not reported | [979597] |
| Opensuse | python-CairoSVG | rpm | tumbleweed | 2.9.0-1.3 | Not reported | OPENSUSE-SU-2026:11989-1 | Not reported |
| Suse | python-CairoSVG | rpm | package hub 15 sp4 | 2.5.2-bp154.2.3.1 | Not reported | OPENSUSE-SU-2023:0272-1 | Not reported |
| Opensuse | python-CairoSVG | rpm | leap 15.4 | 2.5.2-bp154.2.3.1 | Not reported | OPENSUSE-SU-2023:0272-1 | Not reported |
| Suse | python-CairoSVG | rpm | package hub 15 sp5 | 2.5.2-bp155.3.3.1 | Not reported | OPENSUSE-SU-2023:0260-1 | Not reported |
| Opensuse | python-CairoSVG | rpm | leap 15.5 | 2.5.2-bp155.3.3.1 | Not reported | OPENSUSE-SU-2023:0260-1 | Not reported |
OpenFactory catalog packages
[openSUSE Tumbleweed]
- [python313-CairoSVG]Unknown
Source package: [python-CairoSVG]
Details (1)
2.9.0-1.3· noarch · tumbleweedUnknown · Fixed:
2.9.0-1.3Version impact unknown
dsa · python-CairoSVG · opensuse · tumbleweed
- [python314-CairoSVG]Unknown
Source package: [python-CairoSVG]
Details (1)
2.9.0-1.3· noarch · tumbleweedUnknown · Fixed:
2.9.0-1.3Version impact unknown
dsa · python-CairoSVG · opensuse · tumbleweed
[Debian 12 (Bookworm)]
- [cairosvg]Fixed
Details (2)
2.5.2-1.1+deb12u1· all · bookwormFixed · Fixed:
2.5.0-1.1dsa · cairosvg · debian · bookworm; dsa · cairosvg · debian · 12
2.5.2-1.1+deb12u1· all · bookwormFixed · Fixed:
2.5.0-1.1dsa · cairosvg · debian · bookworm; dsa · cairosvg · debian · 12
- [python3-cairosvg]Fixed
Source package: [cairosvg]
Details (2)
2.5.2-1.1+deb12u1· all · bookwormFixed · Fixed:
2.5.0-1.1dsa · cairosvg · debian · bookworm; dsa · cairosvg · debian · 12
2.5.2-1.1+deb12u1· all · bookwormFixed · Fixed:
2.5.0-1.1dsa · cairosvg · debian · bookworm; dsa · cairosvg · debian · 12
[Debian 13 (Trixie)]
- [cairosvg]Fixed
Details (2)
2.7.1-2· all · trixieFixed · Fixed:
2.5.0-1.1dsa · cairosvg · debian · 13
2.7.1-2· all · trixieFixed · Fixed:
2.5.0-1.1dsa · cairosvg · debian · 13
- [python3-cairosvg]Fixed
Source package: [cairosvg]
Details (2)
2.7.1-2· all · trixieFixed · Fixed:
2.5.0-1.1dsa · cairosvg · debian · 13
2.7.1-2· all · trixieFixed · Fixed:
2.5.0-1.1dsa · cairosvg · debian · 13
Observed:
References
- [https://ftp.suse.com/pub/projects/security/csaf/opensuse-su-2023_0260-1.json]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2021-21236]
- [https://osv.dev/vulnerability/openSUSE-SU-2023:0260-1]
- [https://osv.dev/vulnerability/openSUSE-SU-2023:0272-1]
- [https://osv.dev/vulnerability/openSUSE-SU-2026:11989-1]
- [https://security-tracker.debian.org/tracker/CVE-2021-21236]
[Debian Security Tracker] · [FIRST EPSS] · [OSV Package Vulnerability Database] · [SUSE security advisories and VEX]