Resource Exhaustion Affecting py3-cairosvg package, versions <2.5.1-r0


Severity

Recommended
0.0
medium
0
10

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

Threat Intelligence

EPSS
0.12% (47th 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-ALPINE318-PY3CAIROSVG-5516690
  • published10 May 2023
  • 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 Alpine:3.18 py3-cairosvg to version 2.5.1-r0 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream py3-cairosvg package and not the py3-cairosvg package as distributed by Alpine. See How to fix? for Alpine:3.18 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 Scores

version 3.1