Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2023-27586

CVE-2023-27586: CairoSVG SSRF Vulnerability Explained

CVE-2023-27586 is an SSRF vulnerability in CairoSVG that allows attackers to perform server-side request forgery through malicious SVG files. This article covers technical details, affected versions, and mitigations.

Published: January 28, 2026

CVE-2023-27586 Overview

CairoSVG is a popular SVG converter based on Cairo, a 2D graphics library written in Python. Prior to version 2.7.0, CairoSVG 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 (SSRF) attack or cause a Denial of Service (DoS). This vulnerability arises from improper input validation when handling external resource references within SVG documents.

Critical Impact

Attackers can leverage malicious SVG files to force the server to make unauthorized requests to internal or external resources, potentially exposing sensitive data or disrupting service availability.

Affected Products

  • Courtbouillon CairoSVG versions prior to 2.7.0

Discovery Timeline

  • 2023-03-20 - CVE-2023-27586 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2023-27586

Vulnerability Analysis

This vulnerability combines two dangerous weakness classes: Improper Input Validation (CWE-20) and Server-Side Request Forgery (CWE-918). When CairoSVG processes an SVG file, it follows external resource references embedded within the document without proper validation or restriction. This design flaw allows attackers to craft malicious SVG files containing references to arbitrary URLs, which the server will then fetch during the conversion process.

The attack requires local access and user interaction—specifically, a user or application must process the malicious SVG file. Upon processing, the vulnerable CairoSVG instance will make HTTP requests to attacker-specified endpoints, potentially reaching internal services that should not be publicly accessible. The vulnerability can lead to high confidentiality impact through SSRF-based data exfiltration and high availability impact through resource exhaustion or service disruption.

Root Cause

The root cause lies in CairoSVG's default behavior of allowing external resource fetching during SVG processing. The library did not implement adequate restrictions on outbound network requests, enabling SVG files to reference and retrieve content from arbitrary URLs. This lack of input sanitization on URL references created an avenue for SSRF attacks, where the server can be tricked into accessing resources on behalf of an attacker.

Attack Vector

The attack vector is local, requiring user interaction to process a malicious SVG file. An attacker would craft an SVG document containing external resource references (such as <image> tags with href attributes pointing to internal IP addresses or sensitive external endpoints). When this file is processed by a vulnerable CairoSVG instance, the library makes HTTP requests to fetch these resources.

For SSRF exploitation, attackers can target internal services like http://localhost:8080/admin or cloud metadata endpoints like http://169.254.169.254/. For denial of service, the SVG can reference extremely large files or slow-responding servers, exhausting system resources during conversion.

The vulnerability mechanism involves CairoSVG's URL handling during SVG parsing. When an SVG contains external references, the library attempts to fetch these resources without validating whether the target is safe or authorized. Version 2.7.0 addresses this by disabling the ability to access online files by default. For technical implementation details, see the GitHub Security Advisory.

Detection Methods for CVE-2023-27586

Indicators of Compromise

  • Unexpected outbound HTTP/HTTPS requests originating from processes running CairoSVG
  • Network connections to internal IP addresses (e.g., 127.0.0.1, 10.x.x.x, 192.168.x.x) from SVG processing services
  • Access logs showing requests to cloud metadata endpoints (e.g., 169.254.169.254)
  • SVG files containing suspicious href, xlink:href, or external resource references

Detection Strategies

  • Monitor network traffic for unusual outbound connections from application servers processing SVG files
  • Implement application-level logging to capture URLs requested during SVG processing
  • Use web application firewalls (WAF) to inspect incoming SVG files for external URL references
  • Deploy file upload scanning solutions to detect potentially malicious SVG content before processing

Monitoring Recommendations

  • Enable verbose logging in CairoSVG deployments to track resource fetching behavior
  • Set up network monitoring alerts for connections to RFC 1918 private IP ranges from web-facing services
  • Implement egress filtering to restrict outbound connections from servers that process user-supplied content
  • Regularly audit SVG processing workflows for unexpected network activity

How to Mitigate CVE-2023-27586

Immediate Actions Required

  • Upgrade CairoSVG to version 2.7.0 or later immediately
  • Audit existing deployments to identify all instances of CairoSVG in use
  • Implement network segmentation to limit the impact of potential SSRF attacks
  • Review recent SVG processing logs for signs of exploitation attempts

Patch Information

The vulnerability is addressed in CairoSVG version 2.7.0, which disables the ability to access online files by default. The fix has been implemented through two commits:

  • Security patch commit 12d31c6
  • Additional security update commit 33007d4

The official release is available at the CairoSVG 2.7.0 Release page.

Workarounds

  • If immediate upgrade is not possible, implement network-level controls to block outbound requests from SVG processing services
  • Sanitize SVG files before processing by stripping external URL references using preprocessing scripts
  • Run CairoSVG in isolated network environments without access to internal services or sensitive endpoints
  • Consider using allowlist-based URL filtering if external resources are required for legitimate use cases
bash
# Upgrade CairoSVG to the patched version
pip install --upgrade cairosvg>=2.7.0

# Verify the installed version
pip show cairosvg | grep Version

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeSSRF

  • Vendor/TechCairosvg

  • SeverityHIGH

  • CVSS Score7.1

  • EPSS Probability0.07%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-20

  • CWE-918
  • Technical References
  • GitHub Release 2.7.0
  • Vendor Resources
  • GitHub Commit Update

  • GitHub Commit Update

  • GitHub Security Advisory GHSA-rwmf-w63j-p7gv
  • Related CVEs
  • CVE-2026-31899: Courtbouillon CairoSVG DOS Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English