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

CVE-2023-27586 · Severity: low · CVSS 3.1 · Published 2023-03-20

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.

Technologies: CairoSVG (PyPI). Vendors: PyPI.

Quick answers

Is CVE-2023-27586 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2023-27586 being exploited in the wild.
How severe is CVE-2023-27586?
Low severity, with a CVSS score of 3.1, published 20 March 2023.
Which products and versions are affected?
CairoSVG (PyPI) ECOSYSTEM:introduced=0,fixed=2.7.0, GIT:introduced=0,fixed=12d31c653c0254fa9d9853f66b04ea46e7397255,fixed=33007d4af9195e2bfb2ff9af064c4c2d8e4b2b53|ECOSYSTEM:introduced=0,fixed=2.7.0.
Is there a fix for CVE-2023-27586?
Yes. CairoSVG (PyPI): upgrade to 2.7.0 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
Am I affected by CVE-2023-27586?
Check whether you run CairoSVG (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • CairoSVG (PyPI): upgrade to 2.7.0 or later
    pip install "CairoSVG>=2.7.0"

Affected products

  • CairoSVG (PyPI) ECOSYSTEM:introduced=0,fixed=2.7.0, GIT:introduced=0,fixed=12d31c653c0254fa9d9853f66b04ea46e7397255,fixed=33007d4af9195e2bfb2ff9af064c4c2d8e4b2b53|ECOSYSTEM:introduced=0,fixed=2.7.0

Identifiers

  • CVE-2023-27586
  • GHSA-rwmf-w63j-p7gv
  • PYSEC-2023-9

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.