CVE-2024-58136
Yiiframework Yii Improper Protection of Alternate Path Vulnerability
- Actively exploited
- Critical · 9.8 of 10
- Exploited since
- 2 May 2025 added to the CISA list
- Chance of attacks
- 88% in the next 30 days (FIRST EPSS)
- Fix deadline
- 23 May 2025 for US federal agencies
- Published
- 10 Apr 2025 in the NVD
What this means
Yii Framework contains an improper protection of alternate path vulnerability that may allow a remote attacker to execute arbitrary code. This vulnerability could affect other products that implement Yii, including—but not limited to—Craft CMS, as represented by CVE-2025-32432.
CISA
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.
NIST National Vulnerability Database
What to do
Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.
CISA's required action. If you use the product, install the vendor's update as soon as possible.
Affected
- yiiframework Yii
Official sources
- nvd.nist.gov/vuln/detail/CVE-2024-58136
- yiiframework.com/news/709/please-upgrade-to-yii-2-0-52 vendor advisory
- github.com/yiisoft/yii2/commit/40fe496eda529fd1d933b56a1022ec32d3cd0b12
- github.com/yiisoft/yii2/compare/2.0.51...2.0.52
- github.com/yiisoft/yii2/pull/20232
- github.com/yiisoft/yii2/pull/20232#issuecomment-2252459709
- sensepost.com/blog/2025/investigating-an-in-the-wild-campaign-using-rce-in-craftcms/
- cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2024-58136
Data from the NIST National Vulnerability Database, the CISA Known Exploited Vulnerabilities list, FIRST EPSS and ENISA, checked 18 Nov 2026. CVSS vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.