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.52

Details

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

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.