{"id":"CVE-2024-58136","aliases":["CVE-2024-58136","GHSA-ggwg-cmwp-46r5"],"related":[],"kind":"vulnerability","state":"published","title":"yiisoft/yii2 Mishandles the Attaching of Behavior Defined by a `__class` Array Key","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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":"cvelist"},{"lang":"es","text":"Yii 2 anterior a 2.0.52 gestiona mal la asociación de comportamiento definido por una clave de matriz __class, una regresión CVE-2024-4990, tal como se explotó en la naturaleza entre febrero y abril de 2025.","source":"nvd"},{"lang":"en","text":"Yii Framework contains an improper protection of alternate path vulnerability that may allow a remote attacker to execute arbitrary code. This vulnerability could affect other products that implement Yii, including—but not limited to—Craft CMS, as represented by CVE-2025-32432.","source":"kev"}],"published":"2025-04-10T00:00:00.000Z","modified":"2026-06-17T08:14:41.660Z","severity":{"scorer":"mitre","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H","score":9,"rating":"CRITICAL"},"severities":[{"scorer":"mitre","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H","score":9,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H/E:H","score":9,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"}],"cwes":["CWE-424"],"affected":[{"ranges":[{"type":"custom","introduced":"2","fixed":"2.0.52","status":"affected"}],"vendor":"yiiframework","product":"Yii","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.0.52"}],"ecosystem":"Packagist","package":"yiisoft/yii2","purl":"pkg:composer/yiisoft/yii2","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"2.0.52"}],"vendor":"yiiframework","product":"yii","cpe":"cpe:2.3:a:yiiframework:yii:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[],"vendor":"Yiiframework","product":"Yii","source":"kev"}],"references":[{"url":"https://github.com/yiisoft/yii2/pull/20232","tags":["patch","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/yiisoft/yii2/pull/20232#issuecomment-2252459709","tags":["issue-tracking","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/yiisoft/yii2/commit/40fe496eda529fd1d933b56a1022ec32d3cd0b12","tags":["patch","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/yiisoft/yii2/compare/2.0.51...2.0.52","tags":["issue-tracking","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://www.yiiframework.com/news/709/please-upgrade-to-yii-2-0-52","tags":["kev","vendor-advisory","web"],"sources":["cvelist","ghsa","nvd","kev"]},{"url":"https://sensepost.com/blog/2025/investigating-an-in-the-wild-campaign-using-rce-in-craftcms/","tags":["exploit","technical-description","third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2024-58136","tags":["government-resource","us-government-resource","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-58136","tags":["advisory","kev"],"sources":["ghsa","kev"]},{"url":"https://github.com/yiisoft/yii2","tags":["package"],"sources":["ghsa"]},{"url":"https://sensepost.com/blog/2025/investigating-an-in-the-wild-campaign-using-rce-in-craftcms","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"mitre","kev":{"dateAdded":"2025-05-02","dueDate":"2025-05-23","name":"Yiiframework Yii Improper Protection of Alternate Path Vulnerability","requiredAction":"Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.","ransomware":false,"notes":"This vulnerability affects a common open-source component, third-party library, or a protocol used by different products. For more information, please see: https://www.yiiframework.com/news/709/please-upgrade-to-yii-2-0-52 ; https://nvd.nist.gov/vuln/detail/CVE-2024-58136"},"ssvc":{"scorer":"CISA-ADP","exploitation":"active","automatable":"no","technicalImpact":"total","date":"2025-05-02T17:42:11.616Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-58136","url":"https://www.cve.org/CVERecord?id=CVE-2024-58136","licence":"CVE Terms of Use","modified":"2025-10-21T22:55:21.228Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-ggwg-cmwp-46r5","url":"https://github.com/advisories/GHSA-ggwg-cmwp-46r5","licence":"CC-BY-4.0","modified":"2025-10-22T19:53:03.520Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-58136","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-58136","licence":"Public domain","modified":"2026-06-17T08:14:41.660Z"},{"source":"kev","name":"CISA KEV","id":"CVE-2024-58136","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog?search_api_fulltext=CVE-2024-58136","licence":"CC0-1.0","modified":"2025-05-02T00:00:00.000Z"}],"updatedAt":"2026-11-25T22:58:52.522Z","epss":{"score":0.9185,"percentile":0.99816,"date":"2026-12-01T12:00:22.000Z"}}