Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2021-21236

published medium CVSS 3.1 · 5.7

Regular Expression Denial of Service in CairoSVG

Published
06 Jan 2021, 17:00:19 UTC
Updated
03 Aug 2024, 18:09:15 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
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 / vendorReleasePackage / productPublisher statusFixed buildSource
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.

en · GitHub_M · cna

Vendor advisories explicitly linked to this CVE.

12

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.

Affected vendor and product assertions
VendorProductVersion statusSource
Kozea CairoSVG < 2.5.1 (affected) GitHub_M · cna

Weaknesses

1
  • CWE-400 CWE-400 Uncontrolled Resource Consumption (GitHub_M · cna)

References

4

Provider assertions

2

GitHub_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

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected