{"id":"CVE-2024-58136","published":"2025-04-10T03:15:17Z","modified":"2026-06-17T08:14:41Z","title":"Yiiframework Yii Improper Protection of Alternate Path Vulnerability","vendor":"Yiiframework","product":"Yii","tier":"core","eol":null,"description":{"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.","provenance":"source","from":"NVD"},"summary":{"text":"The Yii framework (from Yiiframework) before version 2.0.52 contains an improper protection of alternate path flaw in how it attaches behaviors defined by an __class array key. An attacker with network access can exploit this without authentication, user interaction, or special configuration.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-10-23T07:09:49Z"},"cvss":{"score":9.8,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"NVD"},"epss":{"score":0.87757,"percentile":0.99759,"date":"2026-10-29","provenance":"source"},"kev":{"dateAdded":"2025-05-02","dueDate":"2025-05-23","ransomware":false,"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.","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","provenance":"source"},"vulncheckKev":{"dateAdded":"2025-04-09","exploitedFirstSeen":"2025-04-09","ransomware":false,"evidence":[{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-58136","date":"2025-04-09"},{"url":"https://cyberalerts.io/vulnerability/CVE-2024-58136","date":"2025-04-10"},{"url":"https://www.cve.org/CVERecord?id=CVE-2024-58136","date":"2025-04-10"},{"url":"https://sensepost.com/blog/2025/investigating-an-in-the-wild-campaign-using-rce-in-craftcms/","date":"2025-04-18"},{"url":"https://www.cisa.gov/sites/default/files/feeds/known_exploited_vulnerabilities.json","date":"2025-05-02"},{"url":"https://attackerkb.com/topics/U2DdokjYhB/cve-2024-58136/rapid7-analysis","date":"2025-05-27"},{"url":"https://cyble.com/blog/weekly-cyble-vulnerability-blog/","date":"2025-06-10"},{"url":"https://cyble.com/resources/research-reports/global-cybersecurity-report/","date":"2025-12-11"},{"url":"https://www.loginsoft.com/reports/annually/vulnerability-intelligence-report-2025","date":"2026-01-20"}],"evidenceTotal":9,"provenance":"source"},"exploited":true,"otx":{"pulseCount":50,"pulses":[{"name":"Actively_Exploited_Kev | Oct 30, 2026","url":"https://otx.alienvault.com/pulse/6ae35d889ea92b4ce19c2680","created":"2026-10-29"},{"name":"Actively_Exploited_Kev | Oct 29, 2026","url":"https://otx.alienvault.com/pulse/6ae20c1db17e7057ae7d9ad1","created":"2026-10-28"},{"name":"Actively_Exploited_Kev | Oct 28, 2026","url":"https://otx.alienvault.com/pulse/6ae0ba7e0e2a97ff7b218819","created":"2026-10-27"},{"name":"Actively_Exploited_Kev | Oct 27, 2026","url":"https://otx.alienvault.com/pulse/6adf68b85c3e852f3c111d18","created":"2026-10-26"},{"name":"Actively_Exploited_Kev | Oct 24, 2026","url":"https://otx.alienvault.com/pulse/6adb740e397c3ad4799aa4cd","created":"2026-10-23"},{"name":"Actively_Exploited_Kev | Oct 23, 2026","url":"https://otx.alienvault.com/pulse/6ada236fcfba2dfa730ea482","created":"2026-10-22"},{"name":"Actively_Exploited_Kev | Oct 22, 2026","url":"https://otx.alienvault.com/pulse/6ad8d33a077cbb5cab524d80","created":"2026-10-21"},{"name":"Actively_Exploited_Kev | Oct 21, 2026","url":"https://otx.alienvault.com/pulse/6ad78130c4d1ac2be83a8b6d","created":"2026-10-20"},{"name":"Actively_Exploited_Kev | Oct 20, 2026","url":"https://otx.alienvault.com/pulse/6ad62f63c24a405a3423cc13","created":"2026-10-19"},{"name":"Actively_Exploited_Kev | Oct 19, 2026","url":"https://otx.alienvault.com/pulse/6ad4dda174e5797d0bd238b7","created":"2026-10-18"}],"provenance":"machine"},"cwes":[{"id":"CWE-424","name":"Improper Protection of Alternate Path"}],"references":[{"url":"https://github.com/yiisoft/yii2/commit/40fe496eda529fd1d933b56a1022ec32d3cd0b12","tags":["Patch"]},{"url":"https://github.com/yiisoft/yii2/compare/2.0.51...2.0.52","tags":["Issue Tracking"]},{"url":"https://github.com/yiisoft/yii2/pull/20232","tags":["Patch"]},{"url":"https://github.com/yiisoft/yii2/pull/20232#issuecomment-2252459709","tags":["Issue Tracking"]},{"url":"https://www.yiiframework.com/news/709/please-upgrade-to-yii-2-0-52","tags":["Vendor Advisory"]},{"url":"https://sensepost.com/blog/2025/investigating-an-in-the-wild-campaign-using-rce-in-craftcms/","tags":["Exploit","Third Party Advisory"]},{"url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2024-58136","tags":["US Government Resource"]}],"techniques":[{"id":"T1055","name":"Process Injection","tactics":["privilege-escalation","stealth"],"provenance":"source","basis":"ctid-kev","bases":["ctid-kev"],"basisDetail":"CTID Mappings Explorer KEV 07/28/2025 (ATT&CK 16.1); capability: Other","mappingType":"exploitation_technique","evidence":[],"comment":"The Yii2 PHP framework, prior to version 2.0.52, contains an improper validation flaw that allows an attacker to input arbitrary PHP classes to a JSON file, which will then be instantiated and executed. This can lead to remote code execution and server-side request forgery, among other potential impacts.","confidence":"medium","confidenceNote":"CTID KEV capability group \"other\" is generic"},{"id":"T1059","name":"Command and Scripting Interpreter","tactics":["execution"],"provenance":"source","basis":"ctid-kev","bases":["ctid-kev"],"basisDetail":"CTID Mappings Explorer KEV 07/28/2025 (ATT&CK 16.1); capability: Other","mappingType":"primary_impact","evidence":[],"comment":"The Yii2 PHP framework, prior to version 2.0.52, contains an improper validation flaw that allows an attacker to input arbitrary PHP classes to a JSON file, which will then be instantiated and executed. This can lead to remote code execution and server-side request forgery, among other potential impacts.","confidence":"medium","confidenceNote":"CTID KEV capability group \"other\" is generic"}],"reports":[],"affected":[{"ecosystem":"Packagist","package":"yiisoft/yii2","vulnerableRanges":["<2.0.52"],"patched":["2.0.52"],"from":["GHSA-ggwg-cmwp-46r5"],"provenance":"source"}],"advisories":[{"id":"GHSA-ggwg-cmwp-46r5","url":"https://github.com/advisories/GHSA-ggwg-cmwp-46r5","severity":"CRITICAL","ecosystem":"Packagist","package":"yiisoft/yii2","vulnerableRanges":["<2.0.52"],"patched":["2.0.52"],"provenance":"source","from":"GHSA"}],"euvd":{"id":"EUVD-2025-10502","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2025-10502","exploited":true,"exploitedSince":"2025-05-02","provenance":"source"},"exploits":[],"exploitSources":{"nuclei":[{"id":"CVE-2024-58136","name":"Yii2 PHP Framework < 2.0.52 - Remote Code Execution","severity":"critical","path":"http/cves/2024/CVE-2024-58136.yaml","url":"https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2024/CVE-2024-58136.yaml"}],"provenance":"source"},"exploitRefs":["https://sensepost.com/blog/2025/investigating-an-in-the-wild-campaign-using-rce-in-craftcms/"],"flow":[{"stage":"exploitation","techniques":["T1055"],"provenance":"source"},{"stage":"primary","techniques":["T1059"],"provenance":"source"}],"timeline":[{"date":"2025-04-09","kind":"exploited-reported","label":"Exploitation first reported (VulnCheck KEV evidence)","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-58136","provenance":"source"},{"date":"2025-04-10","kind":"published","label":"Published (NVD)","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-58136","provenance":"source"},{"date":"2025-05-02","kind":"kev","label":"Added to CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","provenance":"source"},{"date":"2025-05-02","kind":"euvd-exploited","label":"ENISA EUVD: exploited","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2025-10502","provenance":"source"}],"speed":{"daysToPublicExploit":null,"firstExploitFrom":null,"daysToKev":22},"priority":{"score":69.8,"factors":[{"name":"In a KEV catalog","points":35.0,"detail":"listed in CISA KEV and VulnCheck KEV"},{"name":"Recent KEV listing","points":0.0,"detail":"added 569 days ago"},{"name":"Known ransomware use","points":0.0,"detail":"not known"},{"name":"EPSS percentile","points":19.95,"detail":"percentile 0.9976"},{"name":"Named in threat reports","points":0.0,"detail":"0 reports"},{"name":"Public exploit code","points":5.0,"detail":"1 NVD reference tagged Exploit; 1 nuclei template"},{"name":"Mentioned in OTX pulses","points":3.0,"detail":"50 pulses"},{"name":"CVSS severity","points":6.86,"detail":"base score 9.8"},{"name":"End-of-life product","points":0.0,"detail":"supported or unknown"}]},"lineage":{"familyId":"fam-yiisoft-yii2-cve-2024-32877","parents":[{"from":"CVE-2024-4990","to":"CVE-2024-58136","relation":"regression","confidence":"high","kind":"lineage","evidence":[{"kind":"text","provenance":"source","relation":"regression","quote":"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.","from":"NVD","in":"CVE-2024-58136"},{"kind":"version-step","provenance":"source","package":"Packagist:yiisoft/yii2","fromFixed":"2.0.49.4","toFixed":"2.0.52","daysApart":21},{"kind":"same-code","provenance":"machine","files":["framework/base/Component.php"],"commits":["https://github.com/yiisoft/yii2/commit/628d406bfafb80fc32147837888c0057d89a021e","https://github.com/yiisoft/yii2/commit/62d081f18c3602d09e7d075bba3a0ca5c313f0b4","https://github.com/yiisoft/yii2/commit/40fe496eda529fd1d933b56a1022ec32d3cd0b12"],"basis":"shared function","functions":["__set"]}]},{"from":"CVE-2024-32877","to":"CVE-2024-58136","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["framework/base/Component.php"],"commits":["https://github.com/yiisoft/yii2/commit/62d081f18c3602d09e7d075bba3a0ca5c313f0b4","https://github.com/yiisoft/yii2/commit/40fe496eda529fd1d933b56a1022ec32d3cd0b12"],"basis":"shared function","functions":["__set"]}]}],"packageHistory":[{"cve":"CVE-2020-15148","published":"2020-09-15","fixed":"2.0.38","kev":false},{"cve":"CVE-2024-32877","published":"2024-05-30","fixed":"2.0.49.4","kev":false},{"cve":"CVE-2024-4990","published":"2025-03-20","fixed":"2.0.49.4","kev":false},{"cve":"CVE-2024-58136","published":"2025-04-10","fixed":"2.0.52","kev":true},{"cve":"CVE-2026-39850","published":"2026-05-20","fixed":"2.0.55","kev":false,"link":{"from":"CVE-2024-58136","to":"CVE-2026-39850","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:yiisoft/yii2","fromFixed":"2.0.52","toFixed":"2.0.55","daysApart":405}]}}],"package":"Packagist:yiisoft/yii2"}}