Resource Exhaustion Affecting cairosvg package, versions <2.5.0-1.1


Severity

Recommended
0.0
medium
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
1.47% (71st percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-DEBIANUNSTABLE-CAIROSVG-1056784
  • published9 Jan 2021
  • disclosed6 Jan 2021

Introduced: 6 Jan 2021

CVE-2021-21236  (opens in a new tab)
CWE-400  (opens in a new tab)

How to fix?

Upgrade Debian:unstable cairosvg to version 2.5.0-1.1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream cairosvg package and not the cairosvg package as distributed by Debian. See How to fix? for Debian:unstable relevant fixed versions and status.

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.

CVSS Base Scores

version 3.1