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

Critical 9.9 Published Updated
Exploited in the wild
Not known
Fix
Available

What is CVE-2023-27586?

CVE-2023-27586 is a critical vulnerability in Kozea CairoSVG, published on 20 Mar 2023.

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.

Weakness: CWE-918, CWE-20

Which versions are affected by CVE-2023-27586?

3 open source packages ship an affected version, including cairosvg and CairoSVG. It affects 1 product.

PackageAffectedFixed in
cairosvg PyPIAll versions2.7.0
cairosvg PyPIAll versions2.7.0
CairoSVG PyPIAll versions2.7.0

Products include Courtbouillon Cairosvg.

How do I fix CVE-2023-27586?

Upgrade cairosvg to 2.7.0 or later.

Is CVE-2023-27586 being exploited?

There is no known exploitation of CVE-2023-27586 in the wild and no public exploit code.

Sources

Also known as DEBIAN-CVE-2023-27586, DSA-5382-1, GHSA-rwmf-w63j-p7gv, MGASA-2023-0126, PYSEC-2023-9, UBUNTU-CVE-2023-27586.

Is CVE-2023-27586 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free