Exploited vulnerabilities · Yiiframework
CVE-2024-58136
Yiiframework Yii Improper Protection of Alternate Path Vulnerability
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.
Description in the NVD
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.
Required action according to CISA
Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.
What to do now
- Check your exposureFind out whether Yiiframework Yii runs anywhere in your environment, including systems of suppliers.
- Patch or mitigateApply the vendor update. If that is not possible at once, use the vendor's mitigation or take the system off the network.
- Look for signs of an attackThis vulnerability is exploited in real attacks. Review the logs of affected systems for the time before the patch.
References
- nvd.nist.gov/vuln/detail/CVE-2024-58136
- github.com/yiisoft/yii2/pull/20232
- github.com/yiisoft/yii2/pull/20232#issuecomment-2252459709
- github.com/yiisoft/yii2/commit/40fe496eda529fd1d933b56a1022ec32d3cd0b12
- github.com/yiisoft/yii2/compare/2.0.51...2.0.52
- www.yiiframework.com/news/709/please-upgrade-to-yii-2-0-52
- sensepost.com/blog/2025/investigating-an-in-the-wild-campaign-using-rce-in-craftcms
- www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2024-58136
- nvd.nist.gov/vuln/detail/CVE-2024-58136
Data: CISA Known Exploited Vulnerabilities Catalog and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.