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

- Severity: Critical 9.9 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:H/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.75%, higher than 51% of CVEs (2026-11-30)
- Published: 2023-03-20T15:23:31.106Z
- Modified: 2026-09-10T03:49:57.000Z
- Also known as: GHSA-rwmf-w63j-p7gv, PYSEC-2023-9
- Weaknesses: CWE-20, CWE-918
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- Kozea CairoSVG: < 2.7.0
- cairosvg (PyPI): before 2.7.0; before 12d31c653c0254fa9d9853f66b04ea46e7397255; before 33007d4af9195e2bfb2ff9af064c4c2d8e4b2b53
- courtbouillon cairosvg: before 2.7.0

## Every score

- GitHub_M: CVSS:3.1 9.9 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:H/A:L`
- GitHub: CVSS:3.1 9.9 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:H/A:L`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:L/SI:H/SA:L`
- NVD: CVSS:3.1 7.1 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H`

## References

- <https://github.com/Kozea/CairoSVG/security/advisories/GHSA-rwmf-w63j-p7gv> (advisory, vendor-advisory, web)
- <https://github.com/Kozea/CairoSVG/commit/12d31c653c0254fa9d9853f66b04ea46e7397255> (fix, patch, web)
- <https://github.com/Kozea/CairoSVG/commit/33007d4af9195e2bfb2ff9af064c4c2d8e4b2b53> (fix, patch, web)
- <https://github.com/Kozea/CairoSVG/releases/tag/2.7.0> (release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-27586> (advisory)
- <https://github.com/Kozea/CairoSVG> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/cairosvg/PYSEC-2023-9.yaml> (web)

## Sources

- CVE List: [CVE-2023-27586](https://www.cve.org/CVERecord?id=CVE-2023-27586), CVE Terms of Use, modified 2025-02-25
- GitHub Advisory Database: [GHSA-rwmf-w63j-p7gv](https://github.com/advisories/GHSA-rwmf-w63j-p7gv), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2023-27586](https://nvd.nist.gov/vuln/detail/CVE-2023-27586), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2023-9](https://osv.dev/vulnerability/PYSEC-2023-9), CC-BY-4.0, modified 2023-11-08

---

Page: https://cve.day/CVE-2023-27586 · Whole record: https://cve.day/CVE-2023-27586.json · Rebuilt by cve.day 2026-11-25T22:58:22.541Z
