CVE-2021-21236
published medium CVSS 3.1 · 5.7Regular Expression Denial of Service in CairoSVG
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Kozea | — | CairoSVG< 2.5.1 | Affected | Not stated | GitHub_M |
| Alpine Linux | edge | py3-cairosvg | Fixed | 2.5.1-r0 | Package fix record |
| SUSE / openSUSE | openSUSE-Leap-15.4 | python3-CairoSVGnoarch | Advisory build | 2.5.2-bp154.2.3.1 | OPENSUSE-SU-2023:0272-1 |
| Alpine Linux | v3.18 | py3-cairosvg | Fixed | 2.5.1-r0 | Package fix record |
| Alpine Linux | v3.19 | py3-cairosvg | Fixed | 2.5.1-r0 | Package fix record |
| Alpine Linux | v3.20 | py3-cairosvg | Fixed | 2.5.1-r0 | Package fix record |
| Alpine Linux | v3.21 | py3-cairosvg | Fixed | 2.5.1-r0 | Package fix record |
| Alpine Linux | v3.22 | py3-cairosvg | Fixed | 2.5.1-r0 | Package fix record |
Show 23 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Alpine Linux | v3.23 | py3-cairosvg | Fixed | 2.5.1-r0 | Package fix record |
| Alpine Linux | v3.24 | py3-cairosvg | Fixed | 2.5.1-r0 | Package fix record |
| SUSE / openSUSE | openSUSE-Leap-15.5 | python3-CairoSVGnoarch | Advisory build | 2.5.2-bp155.3.3.1 | OPENSUSE-SU-2023:0260-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python310-CairoSVGaarch64 | Advisory build | 2.7.1-1.1 | OPENSUSE-SU-2024:13218-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python310-CairoSVGppc64le | Advisory build | 2.7.1-1.1 | OPENSUSE-SU-2024:13218-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python310-CairoSVGs390x | Advisory build | 2.7.1-1.1 | OPENSUSE-SU-2024:13218-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python310-CairoSVGx86_64 | Advisory build | 2.7.1-1.1 | OPENSUSE-SU-2024:13218-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-CairoSVGaarch64 | Advisory build | 2.7.1-1.1 | OPENSUSE-SU-2024:13218-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-CairoSVGppc64le | Advisory build | 2.7.1-1.1 | OPENSUSE-SU-2024:13218-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-CairoSVGs390x | Advisory build | 2.7.1-1.1 | OPENSUSE-SU-2024:13218-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-CairoSVGx86_64 | Advisory build | 2.7.1-1.1 | OPENSUSE-SU-2024:13218-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-CairoSVGaarch64 | Advisory build | 2.9.0-1.3 | OPENSUSE-SU-2026:11989-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-CairoSVGppc64le | Advisory build | 2.9.0-1.3 | OPENSUSE-SU-2026:11989-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-CairoSVGs390x | Advisory build | 2.9.0-1.3 | OPENSUSE-SU-2026:11989-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-CairoSVGx86_64 | Advisory build | 2.9.0-1.3 | OPENSUSE-SU-2026:11989-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-CairoSVGaarch64 | Advisory build | 2.9.0-1.3 | OPENSUSE-SU-2026:11989-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-CairoSVGppc64le | Advisory build | 2.9.0-1.3 | OPENSUSE-SU-2026:11989-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-CairoSVGs390x | Advisory build | 2.9.0-1.3 | OPENSUSE-SU-2026:11989-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-CairoSVGx86_64 | Advisory build | 2.9.0-1.3 | OPENSUSE-SU-2026:11989-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python39-CairoSVGaarch64 | Advisory build | 2.7.1-1.1 | OPENSUSE-SU-2024:13218-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python39-CairoSVGppc64le | Advisory build | 2.7.1-1.1 | OPENSUSE-SU-2024:13218-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python39-CairoSVGs390x | Advisory build | 2.7.1-1.1 | OPENSUSE-SU-2024:13218-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python39-CairoSVGx86_64 | Advisory build | 2.7.1-1.1 | OPENSUSE-SU-2024:13218-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 5.7 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Kozea | CairoSVG | < 2.5.1 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-400 CWE-400 Uncontrolled Resource Consumption
References
4Provider assertions
2GitHub_M · cna
Regular Expression Denial of Service in CairoSVG
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 79367db549151c7556d6995c4ee763f0585b46bdc38a0b8e70a2b24d8bc4df38
- Ingested
- 23 Sep 2026, 07:52:31 UTC
- Source record
- Official CVE record