CVE-2021-21236

NameCVE-2021-21236
DescriptionCairoSVG 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.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, bugtraq, EDB, Metasploit, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, Mageia, GitHub code/issues, web search, more)
NVD severitymedium
Debian Bugs979597

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
cairosvg (PTS)buster, stretch1.0.20-1fixed
bullseye, sid2.5.0-1vulnerable

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
cairosvgsourcestretch(not affected)
cairosvgsourcebuster(not affected)
cairosvgsource(unstable)(unfixed)979597

Notes

[buster] - cairosvg <not-affected> (Vulnerable code introduced in 2.0.0rc6)
[stretch] - cairosvg <not-affected> (Vulnerable code introduced in 2.0.0rc6)
https://github.com/Kozea/CairoSVG/security/advisories/GHSA-hq37-853p-g5cf
Introduced by: https://github.com/Kozea/CairoSVG/commit/4f14d2e8f2d7f9b534c5342e26519b7c27386a81
Fixed by: https://github.com/Kozea/CairoSVG/commit/063185b60588a41d4df661ad70f9f7b699901abc (2.5.1)

Search for package or bug name: Reporting problems