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, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
Debian Bugs979597

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
cairosvg (PTS)buster1.0.20-1fixed
bullseye (security)2.5.0-1.1+deb11u1fixed
sid, trixie2.7.1-1fixed

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

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
cairosvgsourcestretch(not affected)
cairosvgsourcebuster(not affected)


[buster] - cairosvg <not-affected> (Vulnerable code introduced in 2.0.0rc6)
[stretch] - cairosvg <not-affected> (Vulnerable code introduced in 2.0.0rc6)
Introduced by:
Fixed by: (2.5.1)

Search for package or bug name: Reporting problems