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-2024-4990

CVE-2024-4990: Yiiframework Yii RCE Vulnerability

CVE-2024-4990 is a remote code execution flaw in Yiiframework Yii 2.0.48 that allows attackers to instantiate arbitrary classes and execute unauthorized code. This article covers technical details, impact, and mitigation.

Published: April 1, 2026

CVE-2024-4990 Overview

CVE-2024-4990 is an Object Injection vulnerability in the Yii Framework version 2.0.48. The base Component class contains a critical flaw where the __set() magic method does not validate that the value passed is a valid Behavior class name or configuration. This allows an attacker to instantiate arbitrary classes, passing parameters to their constructors and invoking setter methods. Depending on the installed dependencies, various types of attacks are possible, including the execution of arbitrary code, retrieval of sensitive information, and unauthorized access.

Critical Impact

Attackers can exploit improper class name validation in the __set() magic method to instantiate arbitrary classes, potentially leading to remote code execution, data exfiltration, or complete system compromise depending on available dependencies.

Affected Products

  • Yiiframework Yii version 2.0.48

Discovery Timeline

  • 2025-03-20 - CVE-2024-4990 published to NVD
  • 2025-04-01 - Last updated in NVD database

Technical Details for CVE-2024-4990

Vulnerability Analysis

This vulnerability falls under CWE-470: Use of Externally-Controlled Input to Select Classes or Code, commonly known as Unsafe Reflection. The Yii Framework's base Component class implements PHP magic methods to provide dynamic property access and behavior attachment. The __set() magic method is designed to allow behaviors to be attached to components dynamically, but it fails to properly validate that the provided class name or configuration represents a legitimate Behavior class.

When an attacker can control the input to this method, they can specify arbitrary class names that will be instantiated by the framework. The instantiation process passes attacker-controlled parameters to the class constructor and may invoke setter methods, creating a powerful primitive for exploitation.

Root Cause

The root cause lies in insufficient input validation within the __set() magic method of the Yii Framework's base Component class. The method accepts class names or configurations without verifying that they correspond to valid Behavior classes. This trust in user-supplied data violates the principle of least privilege and creates an opportunity for unsafe object instantiation.

In PHP applications, this pattern is particularly dangerous because the framework will locate and instantiate any autoloadable class, not just those intended for use as behaviors. The combination of arbitrary class instantiation with constructor and setter invocation creates multiple avenues for exploitation.

Attack Vector

The attack is network-accessible and requires no authentication or user interaction. An attacker who can influence the values processed by the vulnerable __set() method can exploit this vulnerability remotely.

The exploitation process involves:

  1. Identifying an application endpoint where user input flows to the Component's __set() method
  2. Crafting a malicious payload specifying an exploitable class name and parameters
  3. Leveraging the instantiated object's constructor or setter methods to achieve the desired impact

The actual impact depends heavily on the application's dependencies and the classes available in the autoload path. Applications with libraries that have dangerous constructors or magic methods (such as those performing file operations, database queries, or command execution) are at higher risk.

For detailed technical information about this vulnerability, see the Huntr Bug Bounty Report.

Detection Methods for CVE-2024-4990

Indicators of Compromise

  • Unusual HTTP requests containing serialized PHP objects or class name references targeting Yii Framework applications
  • Application logs showing instantiation of unexpected classes or behaviors
  • Error messages related to class not found exceptions for non-standard class names
  • Unexpected outbound network connections or file system access from web application processes

Detection Strategies

  • Monitor web application logs for requests containing suspicious class name patterns or PHP serialization artifacts
  • Implement runtime application self-protection (RASP) to detect and block arbitrary class instantiation attempts
  • Deploy Web Application Firewall (WAF) rules to filter requests containing potential object injection payloads
  • Use static analysis tools to identify code paths where user input reaches the Component's __set() method

Monitoring Recommendations

  • Enable verbose logging for Yii Framework applications to capture behavior attachment events
  • Configure alerting for PHP fatal errors or exceptions related to class instantiation failures
  • Monitor server resource utilization for anomalies that may indicate exploitation attempts
  • Review application dependency lists for classes known to have dangerous constructors or magic methods

How to Mitigate CVE-2024-4990

Immediate Actions Required

  • Audit your Yii Framework applications to identify if version 2.0.48 is in use
  • Review code paths where user input may influence behavior attachment or component property setting
  • Implement input validation at the application level to restrict class names to an allowlist
  • Consider temporarily disabling dynamic behavior attachment if not required by your application

Patch Information

Organizations should monitor the Yii Framework official repository and security channels for patch releases addressing this vulnerability. The vulnerability was reported through the Huntr Bug Bounty platform, and users should check for security advisories from Yiiframework.

Until a patch is available, apply the recommended workarounds and implement defense-in-depth measures.

Workarounds

  • Implement a custom Component class that overrides __set() with proper class validation against an allowlist
  • Use input sanitization and validation at all application entry points to prevent malicious class names from reaching the vulnerable code
  • Restrict the classes available in the autoload path by auditing and removing unnecessary dependencies
  • Deploy network-level controls to limit the attack surface of affected applications
bash
# Example: Identify affected Yii version in composer.lock
grep -A 5 '"name": "yiisoft/yii2"' composer.lock | grep '"version"'

# Check for version 2.0.48
# If affected, consider constraining to a patched version when available
composer require "yiisoft/yii2:>2.0.48" --update-with-dependencies

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechYiiframework

  • SeverityCRITICAL

  • CVSS Score9.1

  • EPSS Probability0.24%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-470
  • Technical References
  • Huntr Bug Bounty Report
  • Related CVEs
  • CVE-2025-2689: 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