CriticalGHSA-ggwg-cmwp-46r5CVE-2024-58136
yiisoft/yii2 Mishandles the Attaching of Behavior Defined by a `__class` Array Key
Published 10 Apr 2025 · Updated 22 Oct 2025
Affected package
yiisoft/yii2Composer
- Affected
- <2.0.52
- Fixed in
- 2.0.52
Update to the fixed version for your release line, for example:
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.
Is GHSA-ggwg-cmwp-46r5 in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected yiisoft/yii2, and gives you the command that fixes it.
References
- Advisorynvd.nist.gov/vuln/detail/CVE-2024-58136
- Linkgithub.com/yiisoft/yii2/pull/20232
- Linkgithub.com/yiisoft/yii2/pull/20232#issuecomment-2252459709
- Linkgithub.com/yiisoft/yii2/commit/40fe496eda529fd1d933b56a1022ec32d3cd0b12
- Packagegithub.com/yiisoft/yii2
- Linkgithub.com/yiisoft/yii2/compare/2.0.51...2.0.52
- Linksensepost.com/blog/2025/investigating-an-in-the-wild-campaign-using-rce-in-craftcms
- Linkwww.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2024-58136
- Linkwww.yiiframework.com/news/709/please-upgrade-to-yii-2-0-52
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.