5.7
MEDIUM
CVE-2021-21236
CairoSVG Regular Expression Denial of Service
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.

INFO

Published Date :

Jan. 6, 2021, 5:15 p.m.

Last Modified :

Jan. 13, 2021, 3:43 p.m.

Remotely Exploitable :

Yes !

Impact Score :

3.6

Exploitability Score :

2.1
Public PoC/Exploit Available at Github

CVE-2021-21236 has a 2 public PoC/Exploit available at Github. Go to the Public Exploits tab to see the list.

Affected Products

The following products are affected by CVE-2021-21236 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Courtbouillon cairosvg
References to Advisories, Solutions, and Tools

Here, you will find a curated list of external links that provide in-depth information, practical solutions, and valuable tools related to CVE-2021-21236.

URL Resource
https://github.com/Kozea/CairoSVG/commit/cfc9175e590531d90384aa88845052de53d94bf3 Patch Third Party Advisory
https://github.com/Kozea/CairoSVG/releases/tag/2.5.1 Release Notes Third Party Advisory
https://github.com/Kozea/CairoSVG/security/advisories/GHSA-hq37-853p-g5cf Exploit Third Party Advisory
https://pypi.org/project/CairoSVG/ Product Third Party Advisory

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

None

Python JavaScript C#

Updated: 2 years, 8 months ago
0 stars 0 fork 0 watcher
Born at : March 22, 2022, 1:01 p.m. This repo has been linked 11 different CVEs too.

Find regular expressions which are vulnerable to ReDoS (Regular Expression Denial of Service)

Python JavaScript C#

Updated: 3 days, 21 hours ago
792 stars 52 fork 52 watcher
Born at : Nov. 24, 2020, 7:24 p.m. This repo has been linked 11 different CVEs too.

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2021-21236 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2021-21236 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by [email protected]

    May. 14, 2024

    Action Type Old Value New Value
  • Initial Analysis by [email protected]

    Jan. 13, 2021

    Action Type Old Value New Value
    Added CVSS V2 Metadata Victim must voluntarily interact with attack mechanism
    Added CVSS V2 NIST (AV:N/AC:M/Au:N/C:N/I:N/A:P)
    Added CVSS V3.1 NIST AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
    Changed Reference Type https://github.com/Kozea/CairoSVG/commit/cfc9175e590531d90384aa88845052de53d94bf3 No Types Assigned https://github.com/Kozea/CairoSVG/commit/cfc9175e590531d90384aa88845052de53d94bf3 Patch, Third Party Advisory
    Changed Reference Type https://github.com/Kozea/CairoSVG/releases/tag/2.5.1 No Types Assigned https://github.com/Kozea/CairoSVG/releases/tag/2.5.1 Release Notes, Third Party Advisory
    Changed Reference Type https://github.com/Kozea/CairoSVG/security/advisories/GHSA-hq37-853p-g5cf No Types Assigned https://github.com/Kozea/CairoSVG/security/advisories/GHSA-hq37-853p-g5cf Exploit, Third Party Advisory
    Changed Reference Type https://pypi.org/project/CairoSVG/ No Types Assigned https://pypi.org/project/CairoSVG/ Product, Third Party Advisory
    Added CPE Configuration OR *cpe:2.3:a:courtbouillon:cairosvg:*:*:*:*:*:*:*:* versions up to (excluding) 2.5.1
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2021-21236 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2021-21236 weaknesses.

Exploit Prediction

EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.

0.13 }} 0.01%

score

0.48041

percentile

CVSS31 - Vulnerability Scoring System
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability