Skip to content
OpenAdvisories
Critical · 9.9 CVE-2023-27586 EUVD-2023-0051GHSA-rwmf-w63j-p7gvPYSEC-2023-9

CairoSVG improperly processes SVG files loaded from external resources

Published Mar 20, 2023 · Updated Feb 25, 2025 · Assigned by GitHub_M

Description

CairoSVG is an SVG converter based on Cairo, a 2D graphics library. Prior to version 2.7.0, Cairo can send requests to external hosts when processing SVG files. A malicious actor could send a specially crafted SVG file that allows them to perform a server-side request forgery or denial of service. Version 2.7.0 disables CairoSVG's ability to access other files online by default.

Affected products

VendorProductAffectedFixed
Kozea CairoSVG < 2.7.0 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 cairosvg 2.5.2-1.1 —
Debian 13 cairosvg 2.5.2-1.1 —
Debian 12 cairosvg 2.5.2-1.1 —
Debian 11 cairosvg 2.5.0-1.1+deb11u1 DSA-5382-1
ReleasePackageFixed inAdvisory
Ubuntu 26.10 cairosvg No fix yet —
Ubuntu 25.10 cairosvg No fix yet —
Ubuntu 22.04 LTS cairosvg No fix yet —
Ubuntu 20.04 LTS cairosvg No fix yet —
Ubuntu 18.04 LTS cairosvg No fix yet —
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 16.04 LTS cairosvg No fix yet —
ReleasePackageFixed inAdvisory
SUSE Package Hub 15 SP5 python-CairoSVG 2.5.2-bp155.3.3.1 openSUSE-SU-2023:0260-1
SUSE Package Hub 15 SP4 python-CairoSVG 2.5.2-bp154.2.3.1 openSUSE-SU-2023:0272-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed python-CairoSVG 2.9.0-1.3 openSUSE-SU-2026:11989-1
openSUSE Leap 15.5 python-CairoSVG 2.5.2-bp155.3.3.1 openSUSE-SU-2023:0260-1
openSUSE Leap 15.4 python-CairoSVG 2.5.2-bp154.2.3.1 openSUSE-SU-2023:0272-1
ReleasePackageFixed inAdvisory
Alpine v3.24 py3-cairosvg 2.7.0-r0 —
Alpine v3.23 py3-cairosvg 2.7.0-r0 —
Alpine v3.22 py3-cairosvg 2.7.0-r0 —
Alpine v3.21 py3-cairosvg 2.7.0-r0 —
Alpine v3.20 py3-cairosvg 2.7.0-r0 —
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 py3-cairosvg 2.7.0-r0 —
Alpine v3.18 py3-cairosvg 2.7.0-r0 —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI cairosvg < 2.7.0 2.7.0 GHSA-rwmf-w63j-p7gv

Advisories 4

References