CVE-2024-58136: CWE-424 Improper Protection of Alternate Path in yiiframework Yii
Yii 2 before 2.0.52 mishandles the attaching of behavior that is defined by an __class array key, a CVE-2024-4990 regression, as exploited in the wild in February through April 2025.
AI Analysis
Technical Summary
CVE-2024-58136 is a critical security vulnerability affecting the Yii PHP framework, specifically versions before 2.0.52. The flaw arises from improper handling of the attaching of behaviors defined by an __class array key, which is a regression of a previous vulnerability identified as CVE-2024-4990. In Yii, behaviors are a mechanism to enhance or modify the functionality of components dynamically. This vulnerability allows an attacker to manipulate the behavior attachment process, potentially bypassing intended security controls. The weakness is categorized under CWE-424, which involves improper protection of alternate paths, meaning the framework fails to correctly validate or restrict the paths used during behavior attachment. This can lead to unauthorized code execution or privilege escalation. The CVSS v3.1 base score is 9.0, indicating critical severity, with attack vector as network (AV:N), high attack complexity (AC:H), no privileges required (PR:N), no user interaction (UI:N), and scope change (S:C). The impact includes complete compromise of confidentiality, integrity, and availability (C:H/I:H/A:H). Although no exploits have been reported in the wild yet, the vulnerability represents a significant risk due to its ease of exploitation without authentication and the broad impact on affected systems. The vulnerability affects all Yii 2.x versions prior to 2.0.52, which is widely used in web applications globally. No official patches were linked at the time of publication, so users must monitor for updates and apply them promptly once available.
Potential Impact
The potential impact of CVE-2024-58136 is severe for organizations worldwide that rely on the Yii 2 framework for their web applications. Exploitation can lead to full system compromise, including unauthorized access to sensitive data, modification or deletion of data, and disruption or denial of service. Since the vulnerability requires no authentication or user interaction, attackers can remotely exploit it over the network, increasing the risk of automated or large-scale attacks. This can result in data breaches, loss of customer trust, regulatory penalties, and operational downtime. Enterprises using Yii in critical infrastructure, e-commerce, financial services, or government applications face heightened risks. The regression nature of the vulnerability suggests that even those who patched earlier related issues might still be vulnerable if they have not updated to the latest version. The broad scope of affected systems and the critical severity score underscore the urgency for remediation.
Mitigation Recommendations
To mitigate CVE-2024-58136, organizations should immediately upgrade to Yii framework version 2.0.52 or later once it becomes available, as this version addresses the vulnerability. Until a patch is applied, organizations should audit their use of behaviors defined by __class array keys and avoid dynamic or untrusted input in behavior attachment. Implement strict input validation and sanitization on all data influencing behavior configuration. Employ web application firewalls (WAFs) with custom rules to detect and block suspicious requests targeting behavior attachment endpoints. Monitor application logs for unusual behavior attachment attempts or errors. Conduct thorough code reviews focusing on behavior attachment logic to identify and remediate insecure coding patterns. Additionally, isolate critical Yii applications behind network segmentation and limit exposure to untrusted networks. Maintain up-to-date backups and incident response plans to quickly recover from potential exploitation. Stay informed through official Yii project channels for patch releases and security advisories.
Affected Countries
United States, Germany, India, China, United Kingdom, Brazil, France, Japan, Russia, South Korea
CVE-2024-58136: CWE-424 Improper Protection of Alternate Path in yiiframework Yii
Description
Yii 2 before 2.0.52 mishandles the attaching of behavior that is defined by an __class array key, a CVE-2024-4990 regression, as exploited in the wild in February through April 2025.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2024-58136 is a critical security vulnerability affecting the Yii PHP framework, specifically versions before 2.0.52. The flaw arises from improper handling of the attaching of behaviors defined by an __class array key, which is a regression of a previous vulnerability identified as CVE-2024-4990. In Yii, behaviors are a mechanism to enhance or modify the functionality of components dynamically. This vulnerability allows an attacker to manipulate the behavior attachment process, potentially bypassing intended security controls. The weakness is categorized under CWE-424, which involves improper protection of alternate paths, meaning the framework fails to correctly validate or restrict the paths used during behavior attachment. This can lead to unauthorized code execution or privilege escalation. The CVSS v3.1 base score is 9.0, indicating critical severity, with attack vector as network (AV:N), high attack complexity (AC:H), no privileges required (PR:N), no user interaction (UI:N), and scope change (S:C). The impact includes complete compromise of confidentiality, integrity, and availability (C:H/I:H/A:H). Although no exploits have been reported in the wild yet, the vulnerability represents a significant risk due to its ease of exploitation without authentication and the broad impact on affected systems. The vulnerability affects all Yii 2.x versions prior to 2.0.52, which is widely used in web applications globally. No official patches were linked at the time of publication, so users must monitor for updates and apply them promptly once available.
Potential Impact
The potential impact of CVE-2024-58136 is severe for organizations worldwide that rely on the Yii 2 framework for their web applications. Exploitation can lead to full system compromise, including unauthorized access to sensitive data, modification or deletion of data, and disruption or denial of service. Since the vulnerability requires no authentication or user interaction, attackers can remotely exploit it over the network, increasing the risk of automated or large-scale attacks. This can result in data breaches, loss of customer trust, regulatory penalties, and operational downtime. Enterprises using Yii in critical infrastructure, e-commerce, financial services, or government applications face heightened risks. The regression nature of the vulnerability suggests that even those who patched earlier related issues might still be vulnerable if they have not updated to the latest version. The broad scope of affected systems and the critical severity score underscore the urgency for remediation.
Mitigation Recommendations
To mitigate CVE-2024-58136, organizations should immediately upgrade to Yii framework version 2.0.52 or later once it becomes available, as this version addresses the vulnerability. Until a patch is applied, organizations should audit their use of behaviors defined by __class array keys and avoid dynamic or untrusted input in behavior attachment. Implement strict input validation and sanitization on all data influencing behavior configuration. Employ web application firewalls (WAFs) with custom rules to detect and block suspicious requests targeting behavior attachment endpoints. Monitor application logs for unusual behavior attachment attempts or errors. Conduct thorough code reviews focusing on behavior attachment logic to identify and remediate insecure coding patterns. Additionally, isolate critical Yii applications behind network segmentation and limit exposure to untrusted networks. Maintain up-to-date backups and incident response plans to quickly recover from potential exploitation. Stay informed through official Yii project channels for patch releases and security advisories.
Technical Details
- Data Version
- 5.1
- Assigner Short Name
- mitre
- Date Reserved
- 2025-04-10T00:00:00.000Z
- Cisa Enriched
- true
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 682d9837c4522896dcbeb7da
Added to database: 5/21/2025, 9:09:11 AM
Last enriched: 2/28/2026, 3:32:44 AM
Last updated: 3/23/2026, 9:09:30 PM
Views: 92
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.