The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
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-2025-54370

CVE-2025-54370: PhpSpreadsheet SSRF Vulnerability

CVE-2025-54370 is a server-side request forgery vulnerability in PhpOffice/PhpSpreadsheet that occurs when processing HTML documents. This article covers the technical details, affected versions, and mitigation.

Updated: May 19, 2026

CVE-2025-54370 Overview

CVE-2025-54370 is a Server-Side Request Forgery (SSRF) vulnerability [CWE-918] in PhpOffice/PhpSpreadsheet, a widely deployed PHP library for reading and writing spreadsheet files. The flaw resides in the setPath method of the PhpOffice\PhpSpreadsheet\Worksheet\Drawing class. An attacker can supply a crafted path string that is passed unvalidated to the HTML reader. When the processed HTML document is rendered in a browser, the server retrieves attacker-controlled URLs, exposing internal services and metadata endpoints.

Critical Impact

Unauthenticated attackers can coerce vulnerable PHP applications into issuing arbitrary outbound requests, enabling reconnaissance of internal networks and theft of cloud metadata credentials.

Affected Products

  • PhpOffice/PhpSpreadsheet versions prior to 1.30.0
  • PhpOffice/PhpSpreadsheet versions prior to 2.1.12, 2.4.0, and 3.10.0
  • PhpOffice/PhpSpreadsheet versions prior to 5.0.0

Discovery Timeline

  • 2025-08-25 - CVE-2025-54370 published to NVD
  • 2026-04-15 - Last updated in NVD database

Technical Details for CVE-2025-54370

Vulnerability Analysis

The vulnerability is classified as Server-Side Request Forgery under [CWE-918]. PhpSpreadsheet allows developers to embed drawings into worksheets through the Drawing class. The setPath method accepts a file path or URL identifying the image to embed. When the HTML reader processes a document containing such a drawing, it dereferences the supplied path without enforcing scheme or host restrictions.

An attacker who can influence spreadsheet content, or supply a crafted HTML document to an application using PhpSpreadsheet, can point setPath at internal endpoints. Targets include cloud instance metadata services such as http://169.254.169.254/, internal admin panels, and other non-routable services reachable from the PHP host.

The EPSS score is 0.134% (32.7 percentile), indicating no observed in-the-wild exploitation activity at this time.

Root Cause

The root cause is missing input validation in the setPath method of PhpOffice\PhpSpreadsheet\Worksheet\Drawing. The method accepts arbitrary strings and forwards them to the HTML reader, which performs an HTTP fetch against the supplied URL. No allowlist of permitted schemes, hostnames, or IP ranges is applied before the outbound request is initiated.

Attack Vector

Exploitation requires no authentication and no user interaction beyond viewing the rendered output. An attacker uploads or submits a spreadsheet whose drawing path references an internal URL. When the application reads the file and emits the HTML representation, the server performs an HTTP GET against the attacker-supplied target. Response data may be reflected in rendered output, leaking internal service banners, cloud metadata, or session tokens.

No verified exploit code is publicly available. See the GitHub Security Advisory GHSA-rx7m-68vc-ppxh for vendor technical details.

Detection Methods for CVE-2025-54370

Indicators of Compromise

  • Outbound HTTP requests from PHP worker processes to RFC1918 addresses, link-local ranges (169.254.0.0/16), or loopback interfaces.
  • Web server access logs showing spreadsheet uploads followed by anomalous egress connections to cloud metadata endpoints.
  • HTTP responses containing instance metadata fields such as iam, security-credentials, or meta-data reflected back in application output.

Detection Strategies

  • Inspect uploaded spreadsheet files for Drawing elements whose path attribute begins with http://, https://, file://, or gopher:// schemes.
  • Deploy egress filtering rules and alert when PHP-FPM or Apache worker processes initiate connections to internal-only IP ranges.
  • Audit application logs for calls to Drawing::setPath accepting user-controlled input without prior URL validation.

Monitoring Recommendations

  • Forward web application and network egress telemetry into a centralized analytics platform for correlation across upload events and outbound requests.
  • Establish baselines for legitimate outbound HTTP behavior from application servers and alert on deviations.
  • Monitor cloud audit logs (AWS CloudTrail, Azure Activity Log, GCP Audit Logs) for unexpected use of instance role credentials originating from web tiers.

How to Mitigate CVE-2025-54370

Immediate Actions Required

  • Upgrade PhpSpreadsheet to a fixed release: 1.30.0, 2.1.12, 2.4.0, 3.10.0, or 5.0.0 depending on the major version branch in use.
  • Inventory all applications and dependencies (including transitive ones) that bundle PhpSpreadsheet via Composer.
  • Restrict outbound network access from PHP application servers to only the destinations they require.

Patch Information

The maintainers released fixes across five maintained branches. Patch commits include 334a6779, 4050f145, 81a0de22, ac4befd2, and c2cd0e64. Refer to the GitHub Security Advisory for branch mapping.

Workarounds

  • Validate and sanitize any user-supplied input before passing it to Drawing::setPath, rejecting non-local schemes and disallowed hostnames.
  • Block PHP outbound traffic to link-local addresses such as 169.254.169.254 at the host or network firewall.
  • Disable HTML rendering of user-submitted spreadsheets where the feature is not required.
bash
# Composer upgrade example - select the release matching your major version
composer require phpoffice/phpspreadsheet:^5.0.0
# or for the 3.x branch
composer require phpoffice/phpspreadsheet:^3.10.0

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

  • Vulnerability Details
  • TypeSSRF

  • Vendor/TechPhpspreadsheet

  • SeverityHIGH

  • CVSS Score8.7

  • EPSS Probability0.13%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-918
  • Technical References
  • GitHub Commit Update

  • GitHub Commit Update

  • GitHub Commit Update

  • GitHub Commit Update

  • GitHub Commit Update

  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-35453: PhpSpreadsheet XSS Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today 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