What’s Vulnerable › Vulnerabilities
CVE-2024-58136: Yiiframework Yii Improper Protection of Alternate Path Vulnerability
- Severity: critical (CVSS 9.8 v3.1)
- Exploited in the wild: yes — in CISA KEV since 2025-05-02
- EPSS: 87.8% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2025-04-10 · updated 2026-06-17
- Weakness: CWE-424
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.
Affected products
- yiisoft yii: before 2.0.52 — fixed in 2.0.52
How to fix
Upgrade to a fixed version: yiisoft yii 2.0.52. Check the vendor advisory for mitigations.
References
- https://github.com/yiisoft/yii2/commit/40fe496eda529fd1d933b56a1022ec32d3cd0b12
- https://github.com/yiisoft/yii2/compare/2.0.51...2.0.52
- https://github.com/yiisoft/yii2/pull/20232
- https://github.com/yiisoft/yii2/pull/20232#issuecomment-2252459709
- https://www.yiiframework.com/news/709/please-upgrade-to-yii-2-0-52
- https://sensepost.com/blog/2025/investigating-an-in-the-wild-campaign-using-rce-in-craftcms/
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2024-58136
Get alerted when CVE-2024-58136 or the next vulnerability affects your stack