CVE-2021-21236 Details
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.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
No SSVC data is available for this CVE.
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/Kozea/CairoSVG/commit/cfc9175e590531d90384aa88845052de53d94bf3 | CVE | PatchThird Party Advisory |
| https://github.com/Kozea/CairoSVG/releases/tag/2.5.1 | CVE | Release NotesThird Party Advisory |
| https://github.com/Kozea/CairoSVG/security/advisories/GHSA-hq37-853p-g5cf | CVE | ExploitThird Party Advisory |
| https://pypi.org/project/CairoSVG/ | CVE | ProductThird Party Advisory |
| https://github.com/Kozea/CairoSVG/commit/cfc9175e590531d90384aa88845052de53d94bf3 | [email protected] | PatchThird Party Advisory |
| https://github.com/Kozea/CairoSVG/releases/tag/2.5.1 | [email protected] | Release NotesThird Party Advisory |
| https://github.com/Kozea/CairoSVG/security/advisories/GHSA-hq37-853p-g5cf | [email protected] | ExploitThird Party Advisory |
| https://pypi.org/project/CairoSVG/ | [email protected] | ProductThird Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-400 | Uncontrolled Resource Consumption | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| courtbouillon cairosvg | < 2.5.1 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Nov 21, 2024 | CVE Modified | CVE |
| May 14, 2024 | CVE Modified | [email protected] |
| Jan 13, 2021 | Initial Analysis | [email protected] |