{"id":"CVE-2024-58136","aliases":["GHSA-ggwg-cmwp-46r5"],"url":"https://o3.security/vulnerability/CVE-2024-58136","summary":"yiisoft/yii2 Mishandles the Attaching of Behavior Defined by a `__class` Array Key","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.","published":"2025-04-10T00:00:00Z","modified":"2026-10-21T02:31:08.567815563Z","cvss":{"score":9,"severity":"CRITICAL","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H"},"epss":{"score":0.87757,"percentile":0.99753,"asOf":"2026-09-17"},"cisaKev":{"dateAdded":"2025-05-02","dueDate":"2025-05-23","knownRansomwareCampaignUse":false},"exploitsKnown":0,"affectedPackages":[{"ecosystem":"Packagist","name":"yiisoft/yii2","fixedVersion":"2.0.52"}],"fix":{"url":"https://github.com/yiisoft/yii2/commit/40fe496eda529fd1d933b56a1022ec32d3cd0b12","label":"yiisoft/yii2@40fe496"},"references":[{"type":"WEB","url":"https://github.com/yiisoft/yii2/compare/2.0.51...2.0.52"},{"type":"WEB","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2024-58136"},{"type":"WEB","url":"https://www.yiiframework.com/news/709/please-upgrade-to-yii-2-0-52"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/58xxx/CVE-2024-58136.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-58136"},{"type":"FIX","url":"https://github.com/yiisoft/yii2/commit/40fe496eda529fd1d933b56a1022ec32d3cd0b12"},{"type":"FIX","url":"https://github.com/yiisoft/yii2/pull/20232"},{"type":"FIX","url":"https://github.com/yiisoft/yii2/pull/20232#issuecomment-2252459709"},{"type":"ARTICLE","url":"https://sensepost.com/blog/2025/investigating-an-in-the-wild-campaign-using-rce-in-craftcms/"},{"type":"PACKAGE","url":"https://github.com/yiisoft/yii2"},{"type":"WEB","url":"https://sensepost.com/blog/2025/investigating-an-in-the-wild-campaign-using-rce-in-craftcms"}],"provenance":{"sources":["OSV.dev","CISA KEV","FIRST.org (EPSS)"],"lastVerified":"2026-10-21T02:31:08.567815563Z"}}