Appsecure logo

CVE-2024-58136: Critical Vulnerability in Yiiframework Yii

A critical vulnerability in Yiiframework's Yii component allows for improper behavior attachment, posing significant risks to applications. Immediate patching is essential.

CRITICALKnown ExploitedCVSS 9 · Published April 10, 2025

Not a customer? See how AppSecure simulates real world attacks to protect your infrastructure.

Speak to Experts

CVE-2024-58136 is a critical vulnerability affecting the Yiiframework Yii component, with a CVSS score of 9. This vulnerability allows for improper attaching of behavior defined by an __class array key, a regression from CVE-2024-4990. It has been confirmed to be exploited in the wild between February and April 2025, emphasizing the urgency for organizations to act.

The exploitation of this vulnerability can result in severe impacts on confidentiality, integrity, and availability. Given its high-profile nature, organizations using the Yii framework should prioritize remediation to mitigate potential risks.

Organizations should prioritize patching immediately. The vulnerability was published on April 10, 2025, and has been classified as critical due to its severe impact and the potential for exploitation in production environments.

Defenders are urged to apply the latest updates from the Yiiframework, specifically upgrading to version 2.0.52, as this patch addresses the identified issues. Delaying remediation could lead to unauthorized access or exploitation of systems relying on this framework.

In summary, CVE-2024-58136 represents a critical risk for organizations utilizing the Yii framework. Immediate action is required to ensure systems are secured against this vulnerability.

Vulnerability Details

The official description of this vulnerability indicates that Yii 2 before 2.0.52 mishandles the attaching of behavior that is defined by an __class array key. This issue is a regression from CVE-2024-4990 and has been exploited in the wild.

The CVSS score of 9 indicates a critical severity level, highlighting the need for immediate attention from security teams. Affected products include the Yii component from Yiiframework, with a vulnerability classification under CWE-424.

The vulnerability was officially published on April 10, 2025, and organizations are advised to track the latest updates from Yiiframework to ensure they are protected.

Technical Analysis

The root cause of CVE-2024-58136 lies in the improper handling of behavior attachment within the Yii framework, particularly in scenarios involving the __class array key. The attack vector is network-based, with a high attack complexity requirement.

No privileges are required for exploitation, and user interaction is not necessary. The vulnerability presents a significant impact on confidentiality, integrity, and availability, making it a critical concern for organizations.

Risk & Impact Analysis

The real-world deployment risk associated with CVE-2024-58136 is substantial, particularly for applications that rely heavily on the Yii framework. The potential blast radius of exploitation includes unauthorized access and arbitrary code execution, which may severely compromise application security.

Given the critical CVSS score, organizations must assess their exposure to this vulnerability promptly. With the existing knowledge of its exploitation in the wild, urgency is paramount for all users of the affected product.

Signal

Status

Known Exploit

No

Public PoC

No

Actively Exploited

Yes

Ransomware Use

No

Affected Versions

The affected versions include all versions of Yii prior to 2.0.52. Organizations are urged to upgrade to the latest version to mitigate this vulnerability.

Mitigation & Remediation

Organizations should apply the patch provided by Yiiframework to upgrade to version 2.0.52. If immediate patching is not feasible, temporary workarounds may include disabling affected features or additional network controls to mitigate exposure.

For further guidance, organizations can pursue penetration testing services to validate their security posture.

Detection Guidance

To detect potential exploitation of this vulnerability, organizations should monitor logs for unusual behavior, especially in API endpoints that utilize the Yii framework. Behavioral anomalies, such as unexpected changes to application behavior or configurations, should also be investigated.

AppSecure Threat Intelligence Insight

CVE-2024-58136 highlights a significant risk to organizations leveraging the Yii framework. This vulnerability not only affects Yii applications but also has the potential to impact other products that utilize Yii, such as Craft CMS.

Security teams should remain vigilant and continuously assess their systems for vulnerabilities. An effective vulnerability management program can aid in identifying and addressing such issues proactively.

To further enhance security, organizations may consider engaging in continuous security assessments, such as continuous penetration testing, to adapt to evolving threats.

In conclusion, CVE-2024-58136 serves as a reminder of the importance of timely vulnerability management and the need for ongoing security validation to protect organizational assets.

Known Exploitation Timeline

This vulnerability was added to the Known Exploited Vulnerabilities (KEV) catalog on May 2, 2025, indicating its active exploitation in the wild. Organizations are advised to implement remediation strategies before the due date of May 23, 2025.

Affected Versions

All versions of Yii prior to 2.0.52 are affected. Organizations should upgrade to this version to mitigate the vulnerability.

Mitigation & Remediation

To mitigate this vulnerability, organizations should ensure they upgrade to Yii version 2.0.52 or later. For those unable to apply the patch immediately, implementing strict network controls and monitoring for anomalous behavior is essential.

For further security validation, consider engaging in red teaming services to identify and address security gaps.

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

Latest CVEs. Recently published vulnerabilities from the NVD database.

View all vulnerabilities
CVE IDSeverity
CVE-2025-65418HIGH
CVE-2025-65417MEDIUM
CVE-2025-65416MEDIUM
CVE-2025-65415MEDIUM
CVE-2025-61314HIGH

Protect Your Business with Hacker-Focused Approach.