Skip to content
Fencer Vulns
critical 9.9

CVE-2023-27586 json

CairoSVG improperly processes SVG files loaded from external resources

published 2023-03-20 3 y ago modified 2026-09-10 1 mo ago also GHSA-rwmf-w63j-p7gv , PYSEC-2023-9 , EUVD-2023-0051

cvss
9.9
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
0.7%
EPSS 0.7% chance of exploitation in 30 days, percentile 54%
public exploits
0
none known

Summary

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.

Patch / fix

  • pypi cairosvg 2.7.0
  • courtbouillon cairosvg 2.7.0
  • cairosvg Debian 14, Debian 13, Debian 12 2.5.2-1.1

debian advisories DEBIAN-CVE-2023-27586

  • python-CairoSVG openSUSE Tumbleweed 2.9.0-1.3
  • python-CairoSVG Package Hub 15 SP4, openSUSE Leap 15.4 2.5.2-bp154.2.3.1
  • python-CairoSVG Package Hub 15 SP5, openSUSE Leap 15.5 2.5.2-bp155.3.3.1

opensuse advisories openSUSE-SU-2026:11989-1openSUSE-SU-2023:0272-1openSUSE-SU-2023:0260-1

  • py3-cairosvg Alpine 3.24, Alpine 3.23, Alpine 3.22 +4 more 2.7.0-r0

alpine advisories ALPINE-CVE-2023-27586

Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2023-27586 updated cvss 9.9

python-cairosvg: SSRF & DOS vulnerability

  • Red Hat All currently supported Red Hat products
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
none
Automatable
yes
Technical impact
partial
Assessed
20 mo ago

Exploit prediction

0.72% chance of exploitation in the next 30 days, higher than 54% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
CNA 3.1 9.9 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:H/A:L
NVD 3.1 7.1 CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H
GitHub 3.1 9.9 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:H/A:L

Affected packages

ecosystem package affected fixed in
pypi cairosvg
<2.7.0
2.7.0

Affected products

  • Kozea CairoSVG

Classification

Weakness
  • CWE-20 Improper Input Validation
  • CWE-918 Server-Side Request Forgery

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.