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-2025-2689

CVE-2025-2689: Yiiframework Yii RCE Vulnerability

CVE-2025-2689 is a critical remote code execution flaw in Yiiframework Yii2 up to version 2.0.45 caused by unsafe deserialization. This article covers the technical details, affected versions, impact, and mitigation.

Published: April 1, 2026

CVE-2025-2689 Overview

A critical insecure deserialization vulnerability has been identified in yiisoft Yii2 framework versions up to 2.0.45. This vulnerability affects the getIterator function within the symfony\finder\Iterator\SortableIterator.php file, where improper handling of serialized data can lead to remote code execution. The attack can be launched remotely by manipulating serialized objects, potentially allowing attackers to execute arbitrary code on vulnerable systems.

Critical Impact

Remote attackers can exploit the deserialization flaw in the SortableIterator component to execute arbitrary code, potentially leading to complete system compromise of web applications built on the Yii2 framework.

Affected Products

  • yiisoft Yii2 up to version 2.0.45
  • Applications using the Symfony Finder Iterator component through Yii2
  • Web applications built on vulnerable Yiiframework Yii versions

Discovery Timeline

  • 2025-03-24 - CVE-2025-2689 published to NVD
  • 2025-03-24 - Last updated in NVD database

Technical Details for CVE-2025-2689

Vulnerability Analysis

This vulnerability represents an insecure deserialization flaw (CWE-502) combined with improper input validation (CWE-20) in the Yii2 PHP framework. The vulnerability exists in the getIterator function of the SortableIterator.php file, which is part of the Symfony Finder component integrated within Yii2.

Insecure deserialization occurs when an application deserializes untrusted data without adequate verification. In this case, the getIterator function processes serialized objects that can be manipulated by attackers to inject malicious payloads. When the application deserializes these crafted objects, it can trigger arbitrary code execution through PHP's magic methods such as __wakeup() or __destruct().

The vulnerability is particularly dangerous because it can be exploited remotely over the network without requiring any user interaction. An authenticated attacker with low-level privileges can craft malicious serialized payloads to achieve code execution on the target server.

Root Cause

The root cause of this vulnerability lies in the unsafe deserialization of user-controlled data within the SortableIterator class. The getIterator function fails to properly validate or sanitize serialized input before processing, allowing attackers to inject malicious PHP objects that execute code upon deserialization.

PHP's unserialize() function is inherently dangerous when used with untrusted data because it can instantiate arbitrary objects and invoke magic methods. The Yii2 framework's implementation does not implement adequate safeguards such as allowlisting of acceptable classes or using safer serialization alternatives like JSON.

Attack Vector

The attack is network-based and can be executed remotely against vulnerable Yii2 applications. An attacker would craft a malicious serialized PHP object containing a gadget chain that, when deserialized by the getIterator function, triggers arbitrary code execution.

The exploitation flow involves:

  1. Identifying a Yii2 application using a vulnerable version
  2. Crafting a serialized payload containing PHP Object Injection gadgets
  3. Submitting the payload to an endpoint that triggers deserialization in the SortableIterator component
  4. The malicious object is deserialized, executing attacker-controlled code on the server

For technical details on this vulnerability, refer to the GitHub Yii2 Security Guide and VulDB #300710.

Detection Methods for CVE-2025-2689

Indicators of Compromise

  • Unusual serialized data patterns in HTTP request parameters, cookies, or POST bodies containing PHP object notation
  • Unexpected file system access or process execution originating from PHP processes
  • Web server logs showing requests with base64-encoded or URL-encoded serialized PHP objects
  • Evidence of gadget chain classes being instantiated in application logs

Detection Strategies

  • Monitor web application firewalls (WAF) for patterns indicative of PHP object injection, including serialized object markers such as O: followed by class names
  • Implement application-level logging to detect deserialization of unexpected object types
  • Deploy runtime application self-protection (RASP) solutions to detect and block deserialization attacks
  • Use SentinelOne's behavioral analysis to identify post-exploitation activities such as unexpected command execution

Monitoring Recommendations

  • Enable verbose logging for the Yii2 framework to capture deserialization events
  • Configure intrusion detection systems to alert on PHP object injection patterns in network traffic
  • Monitor server processes for anomalous child process spawning from web server or PHP-FPM processes
  • Implement file integrity monitoring on critical application directories

How to Mitigate CVE-2025-2689

Immediate Actions Required

  • Upgrade Yii2 framework to the latest patched version beyond 2.0.45 as soon as patches become available
  • Audit application code for any direct use of the vulnerable SortableIterator component
  • Implement input validation to reject serialized data from untrusted sources
  • Consider using JSON or other safer serialization formats instead of PHP serialization

Patch Information

Organizations should monitor the official Yiiframework repository and security advisories for patch releases addressing this vulnerability. Additional context is available through VulDB #300710 and the VulDB CTI entry.

Until an official patch is released, organizations should implement the workarounds below and consider virtual patching through WAF rules.

Workarounds

  • Implement WAF rules to block requests containing PHP serialized object patterns targeting the affected component
  • If possible, disable or remove the Symfony Finder Iterator component if not required by your application
  • Add allowlisting of permitted classes in any deserialization operations using unserialize() with the allowed_classes option
  • Deploy network segmentation to limit the exposure of vulnerable Yii2 applications
bash
# WAF rule example for ModSecurity to detect PHP serialization attacks
SecRule REQUEST_BODY "@rx O:\d+:\"[^\"]+\":\d+:" \
    "id:100001,phase:2,deny,status:403,msg:'PHP Object Injection Attempt Detected'"

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechYiiframework

  • SeverityMEDIUM

  • CVSS Score5.3

  • EPSS Probability0.28%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/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
  • AvailabilityLow
  • CWE References
  • CWE-20

  • CWE-502
  • Technical References
  • GitHub Yii2 Security Guide

  • VulDB #300710 (CTI)

  • VulDB #300710

  • VulDB Submission #521709
  • Related CVEs
  • CVE-2024-4990: Yiiframework Yii RCE Vulnerability

  • CVE-2025-2690: Yiiframework Yii RCE Vulnerability

  • CVE-2020-15148: Yiiframework Yii 2 RCE Vulnerability

  • CVE-2024-58136: Yiiframework Yii Privilege Escalation
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