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

- Priority: **Prioritise**
- Reason: Severe, CVSS 9.9 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 1% (FIRST, 04-12-2026)
- Next step: Check applicability: affected before 2.7.0 (CNA); fix release not confirmed
- Status: published
- Published: 2023-03-20 · Modified: 2025-02-25
- Aliases: MGASA-2023-0126, GHSA-rwmf-w63j-p7gv, PYSEC-2023-9, UBUNTU-CVE-2023-27586, DEBIAN-CVE-2023-27586, DSA-5382-1, ALPINE-CVE-2023-27586, USN-9096-1
- Record: https://cvemate.com/vulnerability/CVE-2023-27586 · JSON: https://cvemate.com/vulnerability/CVE-2023-27586/json

## Description

```text
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.
```

## Signals

- CVSS: 9.9 critical (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:H/A:L
- EPSS: 0.728%, percentile 55.56%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- alpine py3-cairosvg (Alpine Linux): \< 2.7.0-r0
- courtbouillon cairosvg: \< 2.7.0
- debian cairosvg (Debian): \< 2.5.2-1.1 \| \< 2.5.0-1.1+deb11u1
- ubuntu cairosvg (Ubuntu): All versions (No fix recorded) \| \< 1.0.19-1ubuntu0.1~esm1 \| \< 1.0.20-1ubuntu0.1~esm1 \| \< 2.4.2-1ubuntu0.1~esm1 \| \< 2.5.2-1ubuntu0.1~esm1
- kozea cairosvg: \< 2.7.0
- mageia python-cairosvg (Mageia): \< 2.5.1-1.2.mga8
- PyPI cairosvg (PyPI): \< 33007d4af9195e2bfb2ff9af064c4c2d8e4b2b53 \| \< 2.7.0

## References

- <https://github.com/Kozea/CairoSVG/security/advisories/GHSA-rwmf-w63j-p7gv>
- <https://github.com/Kozea/CairoSVG/commit/12d31c653c0254fa9d9853f66b04ea46e7397255>
- <https://github.com/Kozea/CairoSVG/commit/33007d4af9195e2bfb2ff9af064c4c2d8e4b2b53>
- <https://github.com/Kozea/CairoSVG/releases/tag/2.7.0>
- <https://advisories.mageia.org/MGASA-2023-0126.html>
- <https://bugs.mageia.org/show_bug.cgi?id=31730>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/thread/5HDBMOMLE6GFKXPLKIWFWM2Q6V4DQKXP/>
- <https://nvd.nist.gov/vuln/detail/CVE-2023-27586>
- <https://github.com/Kozea/CairoSVG>
- <https://github.com/pypa/advisory-database/tree/main/vulns/cairosvg/PYSEC-2023-9.yaml>
- <https://ubuntu.com/security/CVE-2023-27586>
- <https://www.cve.org/CVERecord?id=CVE-2023-27586>
- <https://security-tracker.debian.org/tracker/CVE-2023-27586>
- <https://security.alpinelinux.org/vuln/CVE-2023-27586>
- <https://ubuntu.com/security/notices/USN-9096-1>

---

Data as of 2026-12-05T06:48:25.030Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
