GHSA-ggwg-cmwp-46r5critical9.0 Known exploited
yiisoft/yii2 Mishandles the Attaching of Behavior Defined by a `__class` Array Key
Impact
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.
Source excerpt · OSVAffected packages
Start with the recorded fix for your release branch. Check your installed version and test compatibility before upgrading. Fixing this advisory does not rule out other vulnerabilities in the release.
yiisoft/yii2 Packagist
| Affected range | Recorded fix |
|---|---|
| Earlier releases before 2.0.52Ecosystem versions | 2.0.52 |
Version evidence: OSV · GHSA-ggwg-cmwp-46r5
View original version evidence (76 explicit versions)
Original source 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.
References
- Security advisory nvd.nist.gov/vuln/detail/CVE-2024-58136
- Patch github.com/yiisoft/yii2/pull/20232
- Patch github.com/yiisoft/yii2/pull/20232
- Patch github.com/yiisoft/yii2/commit/40fe496eda529fd1d933b56a1022ec32d3cd0b12
- Source reference github.com/yiisoft/yii2
- Source reference github.com/yiisoft/yii2/compare/2.0.51...2.0.52
- Source reference sensepost.com/blog/2025/investigating-an-in-the-wild-campaign-using-rce-in-craftcms
- Security advisory www.cisa.gov/known-exploited-vulnerabilities-catalog
- Source reference www.yiiframework.com/news/709/please-upgrade-to-yii-2-0-52