Resource exhaustion in Courtbouillon Cairosvg
CVE-2021-21236
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.
Vulnerability class: DoS (Denial of Service)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 5.7 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:H.
EPSS exploit prediction
EPSS 0.014, 72.3th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
- Courtbouillon Cairosvg
- Kozea Cairosvg — versions < 2.5.1
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 2 other repositories (doyensec/regexploit, retr0-13/regexploit). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- github.com/Kozea/CairoSVG/security/advisories/GHSA-hq37-853p-g5cf (Exploit, Third Party Advisory)
- pypi.org/project/CairoSVG/ (Product, Third Party Advisory)
- github.com/Kozea/CairoSVG/commit/cfc9175e590531d90384aa88845052de53d94bf3 (Patch, Third Party Advisory)
- github.com/Kozea/CairoSVG/releases/tag/2.5.1 (Third Party Advisory, Release Notes)