CVE-2024-58136
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…
- Published
- Updated
- Reserved
- Assigned by
- mitre
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.
Exploited in the wild
CISA lists this vulnerability in its Known Exploited Vulnerabilities catalog as Yiiframework Yii Improper Protection of Alternate Path Vulnerability.
- Added
- 2 May 2025
- Fix due (US federal)
- 23 May 2025
- Used by ransomware
- Not known
Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| mitreCNA (assigner) | 3.1 | Critical9.0 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H |
| NVDNVD · Analyzed | 3.1 | Critical9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
- EPSS (exploitation in 30 days)
- 87.8% · top 0.2% of all CVEs (6 Nov 2026)
- CISA SSVC
- Exploitation: active · Automatable: no · Technical impact: total
The list uses the assigner's score when there is one, then CISA's, then NVD's: Critical 9.0.
Weakness
Affected products
- affected 2 – < 2.0.52
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- Packagistyiisoft/yii2GHSA-ggwg-cmwp-46r5 (opens in a new tab)
References (7)
- https://github.com/yiisoft/yii2/pull/20232 (opens in a new tab)
- https://github.com/yiisoft/yii2/pull/20232#issuecomment-2252459709 (opens in a new tab)
- https://github.com/yiisoft/yii2/commit/40fe496eda529fd1d933b56a1022ec32d3cd0b12 (opens in a new tab)
- https://github.com/yiisoft/yii2/compare/2.0.51...2.0.52 (opens in a new tab)
- https://www.yiiframework.com/news/709/please-upgrade-to-yii-2-0-52 (opens in a new tab)
- https://sensepost.com/blog/2025/investigating-an-in-the-wild-campaign-using-rce-in-craftcms/ (opens in a new tab)technical-description
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2024-58136 (opens in a new tab)government-resource
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- CISA KEV catalog (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-ggwg-cmwp-46r5 (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://trackcve.app/cve/CVE-2024-58136)Record last updated .