CRITICAL
CVE-2024-58136
CVSS
9.8
KEV
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.
Summary dbcve.org
Yii 2 before version 2.0.52 contains a security flaw in its behavior attachment mechanism where an attacker can exploit the __class array key to achieve arbitrary code execution. This is a regression of CVE-2024-4990 and was actively exploited in the wild between February and April 2025.
Mitigation
Upgrade Yii 2 to version 2.0.52 or later. Organizations running affected versions should prioritize this upgrade given the critical CVSS score and confirmed in-the-wild exploitation.
Weakness (CWE)
CWE-424
EPSS Score
87.76%
Probability of exploitation in next 30 days
99.8th percentile
References
https://github.com/yiisoft/yii2/commit/40fe496eda529fd1d933b56a1022ec32d3cd0b12
Patch
https://github.com/yiisoft/yii2/compare/2.0.51...2.0.52
Issue Tracking
https://github.com/yiisoft/yii2/pull/20232
Patch
https://github.com/yiisoft/yii2/pull/20232#issuecomment-2252459709
Issue Tracking
https://www.yiiframework.com/news/709/please-upgrade-to-yii-2-0-52
Vendor Advisory
https://sensepost.com/blog/2025/investigating-an-in-the-wild-campaign-using-rce-in-craftcms/
Exploit, Third Party Advisory
https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2024-58136
US Government Resource
Base CVE data derived from NVD (public domain). Enrichment by
dbcve.org
(CC-BY-4.0). Fetched via API.