{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2024-58136","id":"CVE-2024-58136","title":"yiisoft/yii2 Mishandles the Attaching of Behavior Defined by a `__class` Array Key","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.","descriptionLong":"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:00.000Z","updated":"2026-10-28T02:30:59.941733659Z","reserved":"2025-04-10T00:00:00.000Z","status":"Analyzed","rejected":false,"assigner":"mitre","metric":{"version":"3.1","score":9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H","rating":"critical","source":"mitre"},"metrics":[{"version":"3.1","score":9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H","rating":"critical","source":"mitre"},{"version":"3.1","score":9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H","rating":"critical","source":"mitre.org"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"NVD"},{"version":"3.1","score":9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H","rating":"critical","source":"OSV"},{"version":"3.1","score":9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H/E:H","rating":"critical","source":"GitHub"}],"rating":"critical","products":["yiiframework Yii"],"affectedProducts":[{"vendor":"yiiframework","product":"Yii","defaultStatus":"unaffected","versions":[{"lessThan":"2.0.52","status":"affected","version":"2","versionType":"custom"}],"platforms":[]}],"packages":[{"ecosystem":"Packagist","name":"yiisoft/yii2","purl":"pkg:composer/yiisoft/yii2","ranges":["<2.0.52"],"fixed":["2.0.52"],"advisory":"GHSA-ggwg-cmwp-46r5"}],"cwes":["CWE-424"],"aliases":["GHSA-ggwg-cmwp-46r5"],"references":[{"url":"https://github.com/yiisoft/yii2/pull/20232","tags":["Patch","fix","web"]},{"url":"https://github.com/yiisoft/yii2/pull/20232#issuecomment-2252459709","tags":["Issue Tracking","fix","web"]},{"url":"https://github.com/yiisoft/yii2/commit/40fe496eda529fd1d933b56a1022ec32d3cd0b12","tags":["Patch","fix","web"]},{"url":"https://github.com/yiisoft/yii2/compare/2.0.51...2.0.52","tags":["Issue Tracking","web"]},{"url":"https://www.yiiframework.com/news/709/please-upgrade-to-yii-2-0-52","tags":["Vendor Advisory","web"]},{"url":"https://sensepost.com/blog/2025/investigating-an-in-the-wild-campaign-using-rce-in-craftcms/","tags":["technical-description","Exploit","Third Party Advisory","article"]},{"url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2024-58136","tags":["government-resource","US Government Resource","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/58xxx/CVE-2024-58136.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-58136","tags":["advisory"]},{"url":"https://github.com/yiisoft/yii2","tags":["package"]},{"url":"https://sensepost.com/blog/2025/investigating-an-in-the-wild-campaign-using-rce-in-craftcms","tags":["web"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":true,"kevAdded":"2025-05-02","kevDue":"2025-05-23","kevEntry":{"cveID":"CVE-2024-58136","vendorProject":"Yiiframework","product":"Yii","vulnerabilityName":"Yiiframework Yii Improper Protection of Alternate Path Vulnerability","dateAdded":"2025-05-02","shortDescription":"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.","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.","dueDate":"2025-05-23","knownRansomwareCampaignUse":"Unknown","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","cwes":["CWE-424"]},"ssvc":{"exploitation":"active","automatable":"no","technicalImpact":"total"},"epss":0.87757,"epssPercentile":0.99764,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2024-58136","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-58136","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2024-58136","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-ggwg-cmwp-46r5","ok":true,"note":"GHSA-ggwg-cmwp-46r5"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"added 2025-05-02"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2024-58136","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":[],"critical":["Exploited in the wild (CISA KEV)","EPSS 88% with CVSS 9.0"],"attention":null}