CRITICAL9.0
GHSA-ggwg-cmwp-46r5
yiisoft/yii2 Mishandles the Attaching of Behavior Defined by a `__class` Array Key
Quick fix
GHSA-ggwg-cmwp-46r5 — yiisoft/yii2: upgrade to the fixed version with the command below.
composer require yiisoft/yii2:^2.0.52Details
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.
Are you affected?
Enter the version of the package you're using.
Affected packages
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-58136[ADVISORY]
- https://github.com/yiisoft/yii2/pull/20232[WEB]
- https://github.com/yiisoft/yii2/pull/20232#issuecomment-2252459709[WEB]
- https://github.com/yiisoft/yii2/commit/40fe496eda529fd1d933b56a1022ec32d3cd0b12[WEB]
- https://github.com/yiisoft/yii2[PACKAGE]
- https://github.com/yiisoft/yii2/compare/2.0.51...2.0.52[WEB]
- https://sensepost.com/blog/2025/investigating-an-in-the-wild-campaign-using-rce-in-craftcms[WEB]
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2024-58136[WEB]
- https://www.yiiframework.com/news/709/please-upgrade-to-yii-2-0-52[WEB]