CVE-2023-27586: CairoSVG improperly processes SVG files loaded from external resources
Vulnerability summary
CVE-2023-27586 is a critical (CVSS 9.9) Improper Input Validation vulnerability in courtbouillon cairosvg. EPSS estimates a 0.73% chance of exploitation in the next 30 days, higher than 55.5% of scored vulnerabilities.
Severe, CVSS 9.9 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 1% (FIRST, 04-12-2026)
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 3 · Related 3Timeline
- 20-03-2023PublishedVulnerability first disclosed.
- 25-02-2025Last modifiedVulnerability information updated.
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.
CVSS metrics
7 scores · 6 sources · 2 versions- OSV · PypiEcosystem advisory · calculated9.9CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:H/A:L
- OSV · UbuntuEcosystem advisory · calculated7.1HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:HDiffers
- OSV · DebianEcosystem advisory · calculated7.1HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:HDiffers
- NVDNIST7.1HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:HDiffers
- OSV · AlpineEcosystem advisory · calculated7.1HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:HDiffers
EPSS trend
Probability
0.73%
Chance of exploitation in the next 30 days
Percentile
56%
Versus all other CVEs
30-day change
Increase +0.01 pp
From 0.72% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-20Improper Input ValidationThe product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.
- CWE-918Server-Side Request ForgeryThe web server receives a URL or similar request from an upstream component and retrieves the contents of this URL, but it does not sufficiently ensure that the request is being sent to the expected destination.
Affected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Alpine1 product
- py3-cairosvg< 2.7.0-r0
Courtbouillon1 product
- cairosvg< 2.7.0
Debian1 product
- cairosvg< 2.5.2-1.1 | < 2.5.0-1.1+deb11u1
Kozea1 product
- cairosvg< 2.7.0
Mageia1 product
- python-cairosvg< 2.5.1-1.2.mga8
PyPI1 product
- cairosvg< 33007d4af9195e2bfb2ff9af064c4c2d8e4b2b53 | < 2.7.0
Ubuntu1 product
- cairosvgAll 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
7 vendors · 7 products
References
15 links- github.com/Kozea/CairoSVG/security/advisories/GHSA-rwmf-w63j-p7gvX Refsource CONFIRMAdvisoryWEBREPORTVendor Advisory
- github.com/Kozea/CairoSVG/commit/12d31c653c0254fa9d9853f66b04ea46e7397255X Refsource MISCWEBFIXREPORTPatch
- github.com/Kozea/CairoSVG/commit/33007d4af9195e2bfb2ff9af064c4c2d8e4b2b53X Refsource MISCWEBFIXREPORTPatch
- github.com/Kozea/CairoSVGPACKAGE