CVEs / CVE-2024-58136
CVE-2024-58136: Yiiframework Yii Improper Protection of Alternate Path Vulnerability
- Known exploited in the CISA KEV catalog since 2 May 2025
- critical 9.8 CVSS 3.1 (NVD)
- EPSS 87.7% chance of exploitation in the next 30 days, higher than 99% of CVEs (30 Oct 2026)
- Last changed at its sources
Are you affected? Check your servers with Stackurity: it lists the software on each server and the vulnerabilities to fix first.
Check your servers with Stackurity Already using Stackurity? Search for CVE-2024-58136
Summary
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.
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.
Affected and fixed versions
| Product | Affected | Fixed in |
|---|---|---|
| yiiframework Yii | from 2, before 2.0.52 | 2.0.52 |
| Product | Affected | Fixed in |
|---|---|---|
| yiisoft/yii2 (Packagist) | before 2.0.52 | 2.0.52 |
Package versions from GHSA-ggwg-cmwp-46r5.
Exploitation
| In CISA KEV since | 2 May 2025 |
|---|---|
| Due date for US federal agencies | 23 May 2025 |
| Used in ransomware campaigns | Unknown |
| Required action | Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable. |
Severity
| CVSS 3.1 | 9.8 criticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HScored by NVD |
|---|---|
| Weakness | CWE-424 |
References
- CVE-2024-58136 on NVD
- CVE-2024-58136 in the CISA KEV catalog
- https://www.yiiframework.com/news/709/please-upgrade-to-yii-2-0-52 (cited by CISA)
- CVE-2024-58136 on OSV
- https://github.com/yiisoft/yii2/commit/40fe496eda529fd1d933b56a1022ec32d3cd0b12 Patch
- https://github.com/yiisoft/yii2/compare/2.0.51...2.0.52 Issue Tracking
- https://github.com/yiisoft/yii2/pull/20232 Patch
- https://github.com/yiisoft/yii2/pull/20232#issuecomment-2252459709 Issue Tracking
- https://www.yiiframework.com/news/709/please-upgrade-to-yii-2-0-52 Vendor Advisory
- https://sensepost.com/blog/2025/investigating-an-in-the-wild-campaign-using-rce-in-craftcms/ Exploit, Third Party Advisory
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2024-58136 US Government Resource
Sources
Exploitation status from the CISA Known Exploited Vulnerabilities catalog. EPSS scores from FIRST. Descriptions, severity and references from the National Vulnerability Database. Open-source package versions from OSV (CC-BY 4.0). Text is shown as each source states it; Stackurity does not edit it. Check the vendor's advisory before acting.
This product uses data from the NVD API but is not endorsed or certified by the NVD.