CVE-2024-58136
CRITICAL 9.8CVSS 3.1known exploitedyiisoft/yii2 Mishandles the Attaching of Behavior Defined by a `__class` Array Key
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.
- Published
- 10 Apr 2025
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Analyzed
- Weakness
- CWE-424
- Also known as
- GHSA-ggwg-cmwp-46r5
- Sources
- NVDJSONCISA KEVJSONOSV GHSA-ggwg-cmwp-46r5JSON
In CISA's Known Exploited Vulnerabilities catalog since 2 May 2025; US federal agencies must fix it by 23 May 2025.
Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | cve@mitre.org (Secondary) | CVSS 3.1 | CRITICAL 9.0 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.0 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H/E:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | yiiframework | yiicpe:2.3:a:yiiframework:yii:*:*:*:*:*:*:*:* |
< 2.0.52 | 2.0.52 |
| OSV | Packagist | yiisoft/yii2 | < 2.0.52 | 2.0.52 |
References
- https://github.com/yiisoft/yii2/commit/40fe496eda529fd1d933b56a1022ec32d3cd0b12 · Patch, WEB
- https://github.com/yiisoft/yii2/compare/2.0.51...2.0.52 · Issue Tracking, WEB
- https://github.com/yiisoft/yii2/pull/20232 · Patch, WEB
- https://github.com/yiisoft/yii2/pull/20232#issuecomment-2252459709 · Issue Tracking, WEB
- https://www.yiiframework.com/news/709/please-upgrade-to-yii-2-0-52 · Vendor Advisory, WEB
- https://sensepost.com/blog/2025/investigating-an-in-the-wild-campaign-using-rce-in-craftcms/ · Exploit, Third Party Advisory, WEB
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2024-58136 · US Government Resource, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-58136 · ADVISORY
- https://github.com/yiisoft/yii2 · PACKAGE
History
- 25 Nov 2026 20:57 UTC · NVD: first stored (published 10 Apr 2025)
- 25 Nov 2026 20:15 UTC · OSV: first stored (published 10 Apr 2025)
- 25 Nov 2026 20:10 UTC · CISA KEV: first stored (published 2 May 2025)
- 2 May 2025 00:00 UTC · Listed as known exploited