CVE-2024-58136 Details
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.
A vulnerability in Yii 2 versions prior to 2.0.52 allows for improper handling of behavior attachments defined by the '__class' array key. This issue, which is a regression of CVE-2024-4990, could be exploited to pass non-behavior class names through the '__class' key, bypassing validation and potentially leading to unintended behavior in the application.
Users are advised to upgrade to Yii 2.0.52, where this vulnerability has been fixed.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed May 2, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://sensepost.com/blog/2025/investigating-an-in-the-wild-campaign-using-rce-in-craftcms/ | CISA-ADP | ExploitThird Party Advisory |
| https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2024-58136 | CISA-ADP | US Government Resource |
| https://github.com/yiisoft/yii2/commit/40fe496eda529fd1d933b56a1022ec32d3cd0b12 | [email protected] | Patch |
| https://github.com/yiisoft/yii2/compare/2.0.51...2.0.52 | [email protected] | Issue Tracking |
| https://github.com/yiisoft/yii2/pull/20232 | [email protected] | Patch |
| https://github.com/yiisoft/yii2/pull/20232#issuecomment-2252459709 | [email protected] | Issue Tracking |
| https://www.yiiframework.com/news/709/please-upgrade-to-yii-2-0-52 | [email protected] | Vendor Advisory |
This CVE is in CISA's Known Exploited Vulnerabilities Catalog
Reference CISA's BOD 22-01 and Known Exploited Vulnerabilities Catalog for further guidance and requirements.
| Vulnerability Name | Date Added | Due Date | Required Action |
|---|---|---|---|
| Yiiframework Yii Improper Protection of Alternate Path Vulnerability | May 2, 2025 | May 23, 2025 | Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable. |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| NVD-CWE-Other | Weakness Not in a Standard CWE Category | [email protected] |
| CWE-424 | Improper Protection of Alternate Path | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| yiiframework yii | < 2.0.52 |
CPE
Remediation
| |
Change History
11 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Nov 5, 2025 | Modified Analysis | [email protected] |
| Oct 21, 2025 | CVE Modified | CISA-ADP |
| Oct 21, 2025 | CVE Modified | CISA-ADP |
| Oct 21, 2025 | CVE Modified | CISA-ADP |
| Jul 30, 2025 | Modified Analysis | [email protected] |
| Jul 30, 2025 | CVE Modified | CISA-ADP |
| May 3, 2025 | CVE CISA KEV Update | Cybersecurity and Infrastructure Security Agency (CISA) U.S. Civilian Government |
| Apr 28, 2025 | Initial Analysis | [email protected] |
| Apr 10, 2025 | New CVE Received | [email protected] |