Vulnerability · Published Mar 20, 2023 · Assigned by GitHub_M
CVE-2023-27586CairoSVG improperly processes SVG files loaded from external resources
Critical 9.9
In plain English
A critical-severity improper input validation in CairoSVG from Kozea. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.7% (higher than 54% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.20 | py3-cairosvg | 2.7.0-r0 | ALPINE-CVE-2023-27586 |
| Alpine:v3.21 | py3-cairosvg | 2.7.0-r0 | ALPINE-CVE-2023-27586 |
| Alpine:v3.22 | py3-cairosvg | 2.7.0-r0 | ALPINE-CVE-2023-27586 |
| Alpine:v3.23 | py3-cairosvg | 2.7.0-r0 | ALPINE-CVE-2023-27586 |
| Alpine:v3.24 | py3-cairosvg | 2.7.0-r0 | ALPINE-CVE-2023-27586 |
| Debian:12 | cairosvg | 2.5.2-1.1 | DEBIAN-CVE-2023-27586 |
| Debian:13 | cairosvg | 2.5.2-1.1 | DEBIAN-CVE-2023-27586 |
| Debian:14 | cairosvg | 2.5.2-1.1 | DEBIAN-CVE-2023-27586 |
| PyPI | cairosvg | 2.7.0 | PYSEC-2023-9 |
| PyPI | cairosvg | 2.7.0 | GHSA-rwmf-w63j-p7gv |
| Ubuntu:22.04:LTS | cairosvg | no fix listed | UBUNTU-CVE-2023-27586 |
| Ubuntu:25.10 | cairosvg | no fix listed | UBUNTU-CVE-2023-27586 |
| Ubuntu:26.10 | cairosvg | no fix listed | UBUNTU-CVE-2023-27586 |
Affected products (as reported)
Weakness: CWE-20, CWE-918 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:H/A:L
References
- https://github.com/Kozea/CairoSVG/security/advisories/GHSA-rwmf-w63j-p7gv x_refsource_CONFIRM
- https://github.com/Kozea/CairoSVG/commit/12d31c653c0254fa9d9853f66b04ea46e7397255 x_refsource_MISC
- https://github.com/Kozea/CairoSVG/commit/33007d4af9195e2bfb2ff9af064c4c2d8e4b2b53 x_refsource_MISC
- https://github.com/Kozea/CairoSVG/releases/tag/2.7.0 x_refsource_MISC