CVE-2021-21236
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.
Predictions
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
Vendor advisory: debian — https://security-tracker.debian.org/tracker/CVE-2021-21236
Vendor advisory: arch — https://security.archlinux.org/ASA-202101-12
OS impact
| OS | Version | Status | Fixed in |
|---|---|---|---|
| debian | bookworm | fixed | 2.5.0-1.1 |
| debian | bullseye | fixed | 2.5.0-1.1 |
| debian | forky | fixed | 2.5.0-1.1 |
| debian | sid | fixed | 2.5.0-1.1 |
| debian | trixie | fixed | 2.5.0-1.1 |
| arch | fixed | 2.5.1-1 |
References
- https://security.archlinux.org/ASA-202101-12
- https://security-tracker.debian.org/tracker/CVE-2021-21236
- https://github.com/Kozea/CairoSVG/security/advisories/GHSA-hq37-853p-g5cf
- https://nvd.nist.gov/vuln/detail/CVE-2021-21236
- https://github.com/Kozea/CairoSVG/commit/cfc9175e590531d90384aa88845052de53d94bf3
- https://github.com/Kozea/CairoSVG
- https://github.com/Kozea/CairoSVG/releases/tag/2.5.1
- https://github.com/pypa/advisory-database/tree/main/vulns/cairosvg/PYSEC-2021-5.yaml
- https://pypi.org/project/CairoSVG
- https://pypi.org/project/CairoSVG/
Verify integrity in audit chain (admin only). AS-IS.