CVE catalog

CVE-2021-21236

cairosvg: CVE-2021-21236

[CVE catalog]

Severity
Medium · CVSS 5.5CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Published
Source
[NVD] · [CVE record]
EPSS
1.37% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debiancairosvgsid2.9.1-1fixed
Debiancairosvgforky2.9.1-1fixed
Debiancairosvgtrixie2.7.1-2fixed
Debiancairosvgbookworm2.5.2-1.1+deb12u1fixed
Opensusepython-CairoSVGtumbleweed2.9.0-1.3fixed
Susepython-CairoSVGpackage hub 15 sp42.5.2-bp154.2.3.1fixed
Opensusepython-CairoSVGleap 15.42.5.2-bp154.2.3.1fixed
Susepython-CairoSVGpackage hub 15 sp52.5.2-bp155.3.3.1fixed
Opensusepython-CairoSVGleap 15.52.5.2-bp155.3.3.1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debiancairosvgsourcesid2.5.0-1.1not yet assignedNot reported[979597]
Debiancairosvgsourceforky2.5.0-1.1not yet assignedNot reported[979597]
Debiancairosvgsourcetrixie2.5.0-1.1not yet assignedNot reported[979597]
Debiancairosvgsourcebookworm2.5.0-1.1not yet assignedNot reported[979597]
Opensusepython-CairoSVGrpmtumbleweed2.9.0-1.3Not reportedOPENSUSE-SU-2026:11989-1Not reported
Susepython-CairoSVGrpmpackage hub 15 sp42.5.2-bp154.2.3.1Not reportedOPENSUSE-SU-2023:0272-1Not reported
Opensusepython-CairoSVGrpmleap 15.42.5.2-bp154.2.3.1Not reportedOPENSUSE-SU-2023:0272-1Not reported
Susepython-CairoSVGrpmpackage hub 15 sp52.5.2-bp155.3.3.1Not reportedOPENSUSE-SU-2023:0260-1Not reported
Opensusepython-CairoSVGrpmleap 15.52.5.2-bp155.3.3.1Not reportedOPENSUSE-SU-2023:0260-1Not reported

[Debian bug #979597]

OpenFactory catalog packages

[openSUSE Tumbleweed]

  • Source package: [python-CairoSVG]

    Details (1)
    • 2.9.0-1.3 · noarch · tumbleweed

      Unknown · Fixed: 2.9.0-1.3

      Version impact unknown

      dsa · python-CairoSVG · opensuse · tumbleweed

  • Source package: [python-CairoSVG]

    Details (1)
    • 2.9.0-1.3 · noarch · tumbleweed

      Unknown · Fixed: 2.9.0-1.3

      Version impact unknown

      dsa · python-CairoSVG · opensuse · tumbleweed

[Debian 12 (Bookworm)]

  • [cairosvg]Fixed
    Details (2)
    • 2.5.2-1.1+deb12u1 · all · bookworm

      Fixed · Fixed: 2.5.0-1.1

      dsa · cairosvg · debian · bookworm; dsa · cairosvg · debian · 12

    • 2.5.2-1.1+deb12u1 · all · bookworm

      Fixed · Fixed: 2.5.0-1.1

      dsa · cairosvg · debian · bookworm; dsa · cairosvg · debian · 12

  • Source package: [cairosvg]

    Details (2)
    • 2.5.2-1.1+deb12u1 · all · bookworm

      Fixed · Fixed: 2.5.0-1.1

      dsa · cairosvg · debian · bookworm; dsa · cairosvg · debian · 12

    • 2.5.2-1.1+deb12u1 · all · bookworm

      Fixed · Fixed: 2.5.0-1.1

      dsa · cairosvg · debian · bookworm; dsa · cairosvg · debian · 12

[Debian 13 (Trixie)]

  • [cairosvg]Fixed
    Details (2)
    • 2.7.1-2 · all · trixie

      Fixed · Fixed: 2.5.0-1.1

      dsa · cairosvg · debian · 13

    • 2.7.1-2 · all · trixie

      Fixed · Fixed: 2.5.0-1.1

      dsa · cairosvg · debian · 13

  • Source package: [cairosvg]

    Details (2)
    • 2.7.1-2 · all · trixie

      Fixed · Fixed: 2.5.0-1.1

      dsa · cairosvg · debian · 13

    • 2.7.1-2 · all · trixie

      Fixed · Fixed: 2.5.0-1.1

      dsa · cairosvg · debian · 13

Observed:

References