CVE-2021-21236

low
Published 2021-01-06 · Modified 2023-11-08
CVSS v3
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CVSS v2
VIR risk
2.5

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

Exploit likelihood
30%
Patch ETA

Heuristic predictions, AS-IS, for prioritization only.

Mitigations

vendor Authored 2026-05-27

Vendor advisory: debian — https://security-tracker.debian.org/tracker/CVE-2021-21236

vendor Authored 2026-05-27

Vendor advisory: arch — https://security.archlinux.org/ASA-202101-12

OS impact

OSVersionStatusFixed in
debian debianbookwormfixed2.5.0-1.1
debian debianbullseyefixed2.5.0-1.1
debian debianforkyfixed2.5.0-1.1
debian debiansidfixed2.5.0-1.1
debian debiantrixiefixed2.5.0-1.1
arch archfixed2.5.1-1

Package impact

EcosystemPackageVulnerableFixed
python PyPIcairosvg<2.5.12.5.1
python PyPIcairosvg<cfc9175e590531d90384aa88845052de53d94bf3||<2.5.1cfc9175e590531d90384aa88845052de53d94bf3

References

Verify integrity in audit chain (admin only). AS-IS.