CVEfocus › CVE database › CVE-2023-27586

CVE-2023-27586CairoSVG improperly processes SVG files loaded from external resources

CVSS 9.9 CriticalEPSS 0.8% (higher than 51% of CVEs)Published 2023-03-20Updated 2025-02-25Assigner: GitHub_M

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.

CWE-20CWE-918

What to do

Fixed builds are available from Alpine, Debian, PyPI: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

11Fixed
3Fix pending
3Will not fix
2Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04cairosvgNot affected
vulnerable_code_not_present
Ubuntu 25.10cairosvgWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2023-27586
Ubuntu 24.04cairosvgNot affected
vulnerable_code_not_present
Ubuntu 22.04cairosvgFix pending2.5.2-1ubuntu0.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2023-27586
Ubuntu 20.04cairosvgFix pending2.4.2-1ubuntu0.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2023-27586
Ubuntu 18.04cairosvgFix pending1.0.20-1ubuntu0.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2023-27586
Ubuntu 16.04cairosvgWill not fix
Ubuntu decided not to fix this in this release
1.0.19-1ubuntu0.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2023-27586
Ubuntu 14.04cairosvgWill not fix
Ubuntu decided not to fix this in this release
Debian 14cairosvgFixed2.5.2-1.1DEBIAN-CVE-2023-27586
Debian 13cairosvgFixed2.5.2-1.1DEBIAN-CVE-2023-27586
Debian 12cairosvgFixed2.5.2-1.1DEBIAN-CVE-2023-27586
Alpine Linux 3.24py3-cairosvgFixed2.7.0-r0ALPINE-CVE-2023-27586
Alpine Linux 3.23py3-cairosvgFixed2.7.0-r0ALPINE-CVE-2023-27586
Alpine Linux 3.22py3-cairosvgFixed2.7.0-r0ALPINE-CVE-2023-27586
Alpine Linux 3.21py3-cairosvgFixed2.7.0-r0ALPINE-CVE-2023-27586
Alpine Linux 3.20py3-cairosvgFixed2.7.0-r0ALPINE-CVE-2023-27586
Alpine Linux 3.19py3-cairosvgFixed2.7.0-r0ALPINE-CVE-2023-27586
Alpine Linux 3.18py3-cairosvgFixed2.7.0-r0ALPINE-CVE-2023-27586
PyPI librarycairosvgFixed2.7.0PYSEC-2023-9

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.