CVE-2023-27586
HIGH 7.1CVSS 3.1CairoSVG improperly processes SVG files loaded from external resources
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.
- Published
- 20 Mar 2023
- Last modified
- 10 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-20CWE-918
- Also known as
- GHSA-rwmf-w63j-p7gvPYSEC-2023-9
- Sources
- NVDJSONOSV GHSA-rwmf-w63j-p7gvJSONOSV PYSEC-2023-9JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | 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 | security-advisories@github.com (Secondary) | CVSS 3.1 | CRITICAL 9.9 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:H/A:L |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.9 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:H/A:L |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.1 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | courtbouillon | cairosvgcpe:2.3:a:courtbouillon:cairosvg:*:*:*:*:*:*:*:* |
< 2.7.0 | 2.7.0 |
| OSV | PyPI | cairosvg | < 2.7.0 | 2.7.0 |
References
- https://github.com/Kozea/CairoSVG/commit/12d31c653c0254fa9d9853f66b04ea46e7397255 · Patch, WEB, FIX
- https://github.com/Kozea/CairoSVG/commit/33007d4af9195e2bfb2ff9af064c4c2d8e4b2b53 · Patch, WEB, FIX
- https://github.com/Kozea/CairoSVG/releases/tag/2.7.0 · Release Notes, WEB
- https://github.com/Kozea/CairoSVG/security/advisories/GHSA-rwmf-w63j-p7gv · Vendor Advisory, WEB, ADVISORY
- 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
History
- 25 Nov 2026 20:36 UTC · NVD: first stored (published 20 Mar 2023)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 20 Mar 2023)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 20 Mar 2023)